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

Unified Diff: chrome/browser/apps/ephemeral_app_launcher.cc

Issue 242613004: Replace NOTIFICATION_EXTENSION_LOADED to NOTIFICATION_EXTENSION_LOADED_DEPRECATED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 8 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
« no previous file with comments | « apps/shell/browser/shell_extension_system.cc ('k') | chrome/browser/autocomplete/extension_app_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/apps/ephemeral_app_launcher.cc
diff --git a/chrome/browser/apps/ephemeral_app_launcher.cc b/chrome/browser/apps/ephemeral_app_launcher.cc
index fa953d873626dd2bcf6da878fd9712edf34d468d..4f9707471708fd596f3d310fc2780fc450bf7642 100644
--- a/chrome/browser/apps/ephemeral_app_launcher.cc
+++ b/chrome/browser/apps/ephemeral_app_launcher.cc
@@ -137,7 +137,8 @@ EphemeralAppLauncher::EphemeralAppLauncher(
EphemeralAppLauncher::~EphemeralAppLauncher() {}
void EphemeralAppLauncher::StartObserving() {
- registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_LOADED,
+ registrar_.Add(this,
+ chrome::NOTIFICATION_EXTENSION_LOADED_DEPRECATED,
content::Source<Profile>(profile()->GetOriginalProfile()));
}
@@ -254,7 +255,7 @@ void EphemeralAppLauncher::CompleteInstall(const std::string& error) {
// chrome::NOTIFICATION_EXTENSION_INSTALLED, but this is broadcasted before
// ExtensionService has added the extension to its list of installed
// extensions and is too early to launch the app. Instead, we will launch at
- // chrome::NOTIFICATION_EXTENSION_LOADED.
+ // chrome::NOTIFICATION_EXTENSION_LOADED_DEPRECATED.
// TODO(tmdiep): Refactor extensions/WebstoreInstaller or
// WebstoreStandaloneInstaller to support this cleanly.
}
@@ -269,7 +270,7 @@ void EphemeralAppLauncher::Observe(
const content::NotificationSource& source,
const content::NotificationDetails& details) {
switch (type) {
- case chrome::NOTIFICATION_EXTENSION_LOADED: {
+ case chrome::NOTIFICATION_EXTENSION_LOADED_DEPRECATED: {
const extensions::Extension* extension =
content::Details<const extensions::Extension>(details).ptr();
DCHECK(extension);
« no previous file with comments | « apps/shell/browser/shell_extension_system.cc ('k') | chrome/browser/autocomplete/extension_app_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698