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

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

Issue 10947046: Eliminate kAshNotifyDisabled and SystemNotification (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit Created 8 years, 3 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/low_battery_observer.h
diff --git a/chrome/browser/chromeos/power/low_battery_observer.h b/chrome/browser/chromeos/power/low_battery_observer.h
deleted file mode 100644
index 815a8d5e41a1e9b282bbabc3584681d4b00d313b..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/power/low_battery_observer.h
+++ /dev/null
@@ -1,38 +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.
-
-#ifndef CHROME_BROWSER_CHROMEOS_POWER_LOW_BATTERY_OBSERVER_H_
-#define CHROME_BROWSER_CHROMEOS_POWER_LOW_BATTERY_OBSERVER_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/time.h"
-#include "chrome/browser/chromeos/notifications/system_notification.h"
-#include "chromeos/dbus/power_manager_client.h"
-
-class Profile;
-
-namespace chromeos {
-
-// Displays a system notification when the battery is low.
-class LowBatteryObserver : public PowerManagerClient::Observer {
- public:
- explicit LowBatteryObserver(Profile* profile);
- virtual ~LowBatteryObserver();
-
- private:
- virtual void PowerChanged(const PowerSupplyStatus& power_status) OVERRIDE;
-
- void Show(base::TimeDelta remaining, bool urgent);
- void Hide();
-
- SystemNotification notification_;
- int remaining_; // Last displayed remaining time in minutes
-
- DISALLOW_COPY_AND_ASSIGN(LowBatteryObserver);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_POWER_LOW_BATTERY_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698