summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_gcm_app_handler.cc
diff options
context:
space:
mode:
authorlimasdf@gmail.com <limasdf@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-20 21:54:41 +0000
committerlimasdf@gmail.com <limasdf@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-20 21:54:41 +0000
commitfdc76195de53719adc66df4aee6488e02b476c24 (patch)
tree053298bc43d4bfbf1599c787c79fc9b4c3446099 /chrome/browser/extensions/extension_gcm_app_handler.cc
parent91765737273790b4decc392da2441c3bb1e3f25c (diff)
downloadchromium_src-fdc76195de53719adc66df4aee6488e02b476c24.zip
chromium_src-fdc76195de53719adc66df4aee6488e02b476c24.tar.gz
chromium_src-fdc76195de53719adc66df4aee6488e02b476c24.tar.bz2
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
Diffstat (limited to 'chrome/browser/extensions/extension_gcm_app_handler.cc')
-rw-r--r--chrome/browser/extensions/extension_gcm_app_handler.cc4
1 files changed, 2 insertions, 2 deletions
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>(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<Extension>(details).ptr();
if (IsGCMPermissionEnabled(extension))
GetGCMProfileService()->AddAppHandler(extension->id(), this);