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

Unified Diff: chrome/browser/chromeos/low_battery_observer.h

Issue 8271024: chromeos: Add power supply info reading capability (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: removed #if 0 Created 9 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/low_battery_observer.h
diff --git a/chrome/browser/chromeos/low_battery_observer.h b/chrome/browser/chromeos/low_battery_observer.h
index d2258694c1170bb1e0c1150c839f500b43e841ce..cec5775b40bcc79d7a281c8fedb61c2f802d6b70 100644
--- a/chrome/browser/chromeos/low_battery_observer.h
+++ b/chrome/browser/chromeos/low_battery_observer.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
satorux1 2011/10/28 17:36:23 2011
Simon Que 2011/10/29 02:20:11 Done.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -8,7 +8,7 @@
#include "base/basictypes.h"
#include "base/time.h"
-#include "chrome/browser/chromeos/cros/power_library.h"
+#include "chrome/browser/chromeos/dbus/power_manager_client.h"
#include "chrome/browser/chromeos/notifications/system_notification.h"
class Profile;
@@ -18,14 +18,13 @@ namespace chromeos {
// The low battery observer displays a system notification when the battery
// is low.
-class LowBatteryObserver : public PowerLibrary::Observer {
+class LowBatteryObserver : public PowerManagerClient::Observer {
public:
explicit LowBatteryObserver(Profile* profile);
virtual ~LowBatteryObserver();
private:
virtual void PowerChanged(const PowerSupplyStatus& power_status);
- virtual void SystemResumed() {}
void Show(base::TimeDelta remaining, bool urgent);
void Hide();

Powered by Google App Engine
This is Rietveld 408576698