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

Unified Diff: chrome/browser/chromeos/power/screen_dimming_observer.cc

Issue 10546024: Add RootWindowController (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« ash/tooltips/tooltip_controller.cc ('K') | « ash/wm/window_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/power/screen_dimming_observer.cc
diff --git a/chrome/browser/chromeos/power/screen_dimming_observer.cc b/chrome/browser/chromeos/power/screen_dimming_observer.cc
index 7795760c279ae87c036d9873356edd1b30395874..c1080eb5883300ef4df24d00f712f23fa920e467 100644
--- a/chrome/browser/chromeos/power/screen_dimming_observer.cc
+++ b/chrome/browser/chromeos/power/screen_dimming_observer.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/chromeos/power/screen_dimming_observer.h"
+#include "ash/root_window_controller.h"
#include "ash/shell.h"
#include "ash/wm/screen_dimmer.h"
#include "chromeos/dbus/dbus_thread_manager.h"
@@ -19,7 +20,7 @@ ScreenDimmingObserver::~ScreenDimmingObserver() {
}
void ScreenDimmingObserver::ScreenDimmingRequested(ScreenDimmingState state) {
- ash::Shell::GetInstance()->screen_dimmer()->SetDimming(
+ ash::Shell::GetPrimaryRootWindowController()->screen_dimmer()->SetDimming(
oshima 2012/06/13 00:46:09 Oops, I was going to define Shell::SetDimming. Ple
state == PowerManagerClient::Observer::SCREEN_DIMMING_IDLE);
}
« ash/tooltips/tooltip_controller.cc ('K') | « ash/wm/window_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698