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

Unified Diff: chrome/browser/extensions/extension_toolbar_model.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/extension_toolbar_model.cc
diff --git a/chrome/browser/extensions/extension_toolbar_model.cc b/chrome/browser/extensions/extension_toolbar_model.cc
index 3d04b05a83592806a0a30a6bdd08c1d1fa58be0f..7d72ae97714cd4fe36de45d91aeac4a6a9439d54 100644
--- a/chrome/browser/extensions/extension_toolbar_model.cc
+++ b/chrome/browser/extensions/extension_toolbar_model.cc
@@ -51,7 +51,7 @@ ExtensionToolbarModel::ExtensionToolbarModel(
weak_ptr_factory_(this) {
registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_LOADED,
content::Source<Profile>(profile_));
- registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED,
+ registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED,
content::Source<Profile>(profile_));
registrar_.Add(this, chrome::NOTIFICATION_EXTENSIONS_READY,
content::Source<Profile>(profile_));
@@ -189,7 +189,7 @@ void ExtensionToolbarModel::Observe(
}
const Extension* extension = NULL;
- if (type == chrome::NOTIFICATION_EXTENSION_UNLOADED) {
+ if (type == chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED) {
extension = content::Details<extensions::UnloadedExtensionInfo>(
details)->extension;
} else if (type ==
@@ -211,7 +211,7 @@ void ExtensionToolbarModel::Observe(
extension_prefs_, extension->id())) {
AddExtension(extension);
}
- } else if (type == chrome::NOTIFICATION_EXTENSION_UNLOADED) {
+ } else if (type == chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED) {
RemoveExtension(extension);
} else if (type == chrome::NOTIFICATION_EXTENSION_UNINSTALLED) {
UninstalledExtension(extension);
« no previous file with comments | « chrome/browser/extensions/extension_service_unittest.cc ('k') | chrome/browser/extensions/extension_warning_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698