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

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

Issue 26692002: chromeos: More power-related cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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
Index: chrome/browser/chromeos/power/resume_observer.cc
diff --git a/chrome/browser/chromeos/power/resume_observer.cc b/chrome/browser/chromeos/power/resume_observer.cc
deleted file mode 100644
index 251a36afa14404080c68f93781106f1ad967bb99..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/power/resume_observer.cc
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/chromeos/power/resume_observer.h"
-
-#include "ash/shell.h"
-#include "ash/system/tray/system_tray_notifier.h"
-#include "chrome/browser/extensions/api/system_private/system_private_api.h"
-#include "chromeos/dbus/dbus_thread_manager.h"
-#include "chromeos/display/output_configurator.h"
-
-namespace chromeos {
-
-ResumeObserver::ResumeObserver() {
- DBusThreadManager::Get()->GetPowerManagerClient()->AddObserver(this);
-}
-
-ResumeObserver::~ResumeObserver() {
- DBusThreadManager::Get()->GetPowerManagerClient()->RemoveObserver(this);
-}
-
-void ResumeObserver::SystemResumed(const base::TimeDelta& sleep_duration) {
- extensions::DispatchWokeUpEvent();
- ash::Shell::GetInstance()->output_configurator()->ResumeDisplays();
- ash::Shell::GetInstance()->system_tray_notifier()->NotifyRefreshClock();
-}
-
-} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698