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

Unified Diff: chrome/browser/extensions/api/power/power_api_manager.cc

Issue 204703002: Rename NOTIFICATION_EXTENSION_UNLOADED to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: maybe upload wont do something bizarre this time Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/power/power_api_manager.cc
diff --git a/chrome/browser/extensions/api/power/power_api_manager.cc b/chrome/browser/extensions/api/power/power_api_manager.cc
index 89c5970c5468fb5aa210217a1fdd60e8fd28c616..914f4dd8bc6cb18314043cb7350d5270eeb2c41b 100644
--- a/chrome/browser/extensions/api/power/power_api_manager.cc
+++ b/chrome/browser/extensions/api/power/power_api_manager.cc
@@ -56,7 +56,7 @@ void PowerApiManager::Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {
switch (type) {
- case chrome::NOTIFICATION_EXTENSION_UNLOADED:
+ case chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED:
RemoveRequest(content::Details<extensions::UnloadedExtensionInfo>(
details)->extension->id());
UpdatePowerSaveBlocker();
@@ -72,7 +72,7 @@ void PowerApiManager::Observe(int type,
PowerApiManager::PowerApiManager()
: create_blocker_function_(base::Bind(&content::PowerSaveBlocker::Create)),
current_level_(api::power::LEVEL_SYSTEM) {
- registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED,
+ registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED,
content::NotificationService::AllSources());
registrar_.Add(this, chrome::NOTIFICATION_APP_TERMINATING,
content::NotificationService::AllSources());
« no previous file with comments | « chrome/browser/extensions/api/omnibox/omnibox_api.cc ('k') | chrome/browser/extensions/api/power/power_api_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698