From fdc76195de53719adc66df4aee6488e02b476c24 Mon Sep 17 00:00:00 2001 From: "limasdf@gmail.com" Date: Sun, 20 Apr 2014 21:54:41 +0000 Subject: Replace NOTIFICATION_EXTENSION_LOADED to NOTIFICATION_EXTENSION_LOADED_DEPRECATED to have bidirect with NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED. This CL is the result of below script, and 'git cl format'. find -regex '.*/.*\.\(mm\|cc\|h\)$' | xargs sed -i s/NOTIFICATION_EXTENSION_LOADED/NOTIFICATION_EXTENSION_LOADED_DEPRECATED/g BUG=354367 Review URL: https://codereview.chromium.org/242613004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264939 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/extensions/extension_gcm_app_handler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/browser/extensions/extension_gcm_app_handler.cc') diff --git a/chrome/browser/extensions/extension_gcm_app_handler.cc b/chrome/browser/extensions/extension_gcm_app_handler.cc index e0b2545..86ef5bb 100644 --- a/chrome/browser/extensions/extension_gcm_app_handler.cc +++ b/chrome/browser/extensions/extension_gcm_app_handler.cc @@ -47,7 +47,7 @@ ExtensionGCMAppHandler::ExtensionGCMAppHandler(content::BrowserContext* context) weak_factory_(this) { // Listen to various extension related notifications. registrar_.Add(this, - chrome::NOTIFICATION_EXTENSION_LOADED, + chrome::NOTIFICATION_EXTENSION_LOADED_DEPRECATED, content::Source(profile_)); registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED, @@ -105,7 +105,7 @@ void ExtensionGCMAppHandler::Observe( const content::NotificationSource& source, const content::NotificationDetails& details) { switch (type) { - case chrome:: NOTIFICATION_EXTENSION_LOADED: { + case chrome::NOTIFICATION_EXTENSION_LOADED_DEPRECATED: { const Extension* extension = content::Details(details).ptr(); if (IsGCMPermissionEnabled(extension)) GetGCMProfileService()->AddAppHandler(extension->id(), this); -- cgit v1.1