Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Side by Side Diff: chrome/browser/chromeos/display/display_configuration_observer.cc

Issue 12438016: Save display preference when all display configuration changes has been completed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: replace dcheck Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/chromeos/display/display_configuration_observer.h"
6
7 #include "ash/display/display_controller.h"
8 #include "ash/shell.h"
9 #include "chrome/browser/chromeos/display/display_preferences.h"
10
11 namespace chromeos {
12
13 DisplayConfigurationObserver::DisplayConfigurationObserver() {
14 ash::Shell::GetInstance()->display_controller()->AddObserver(this);
15 }
16
17 DisplayConfigurationObserver::~DisplayConfigurationObserver() {
18 ash::Shell::GetInstance()->display_controller()->RemoveObserver(this);
19 }
20
21 void DisplayConfigurationObserver::OnDisplayConfigurationChanging() {
22 }
23
24 void DisplayConfigurationObserver::OnDisplayConfigurationChanged() {
25 StoreDisplayPrefs();
26 }
27
28 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698