summaryrefslogtreecommitdiffstats
path: root/apps
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 /apps
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 'apps')
-rw-r--r--apps/app_window_geometry_cache.cc4
-rw-r--r--apps/shell/browser/shell_extension_system.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_window_geometry_cache.cc b/apps/app_window_geometry_cache.cc
index 8b6cbba..e12794b 100644
--- a/apps/app_window_geometry_cache.cc
+++ b/apps/app_window_geometry_cache.cc
@@ -34,7 +34,7 @@ AppWindowGeometryCache::AppWindowGeometryCache(
: prefs_(prefs),
sync_delay_(base::TimeDelta::FromMilliseconds(kSyncTimeoutMilliseconds)) {
registrar_.Add(this,
- chrome::NOTIFICATION_EXTENSION_LOADED,
+ chrome::NOTIFICATION_EXTENSION_LOADED_DEPRECATED,
content::Source<Profile>(profile));
registrar_.Add(this,
chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED,
@@ -198,7 +198,7 @@ void AppWindowGeometryCache::Observe(
const content::NotificationSource& source,
const content::NotificationDetails& details) {
switch (type) {
- case chrome::NOTIFICATION_EXTENSION_LOADED: {
+ case chrome::NOTIFICATION_EXTENSION_LOADED_DEPRECATED: {
std::string extension_id =
content::Details<const extensions::Extension>(details).ptr()->id();
LoadGeometryFromStorage(extension_id);
diff --git a/apps/shell/browser/shell_extension_system.cc b/apps/shell/browser/shell_extension_system.cc
index ce7d3ac..37bb147 100644
--- a/apps/shell/browser/shell_extension_system.cc
+++ b/apps/shell/browser/shell_extension_system.cc
@@ -59,7 +59,7 @@ bool ShellExtensionSystem::LoadAndLaunchApp(const base::FilePath& app_dir) {
RegisterExtensionWithRequestContexts(extension);
content::NotificationService::current()->Notify(
- chrome::NOTIFICATION_EXTENSION_LOADED,
+ chrome::NOTIFICATION_EXTENSION_LOADED_DEPRECATED,
content::Source<BrowserContext>(browser_context_),
content::Details<const Extension>(extension));