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

Unified Diff: chrome/browser/extensions/state_store.cc

Issue 298883006: Rename NOTIFICATION_EXTENSION_INSTALLED to (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comment Created 6 years, 7 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/state_store.cc
diff --git a/chrome/browser/extensions/state_store.cc b/chrome/browser/extensions/state_store.cc
index c4fb85db7eaa177db37fd06ab5752311d87f3675..fa1fd254e727da4048dc9206a226d82e67ca5681 100644
--- a/chrome/browser/extensions/state_store.cc
+++ b/chrome/browser/extensions/state_store.cc
@@ -67,7 +67,8 @@ StateStore::StateStore(Profile* profile,
const base::FilePath& db_path,
bool deferred_load)
: db_path_(db_path), task_queue_(new DelayedTaskQueue()) {
- registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_INSTALLED,
+ registrar_.Add(this,
+ chrome::NOTIFICATION_EXTENSION_INSTALLED_DEPRECATED,
content::Source<Profile>(profile));
registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNINSTALLED,
content::Source<Profile>(profile));
@@ -87,7 +88,8 @@ StateStore::StateStore(Profile* profile,
StateStore::StateStore(Profile* profile, scoped_ptr<ValueStore> value_store)
: store_(value_store.Pass()), task_queue_(new DelayedTaskQueue()) {
- registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_INSTALLED,
+ registrar_.Add(this,
+ chrome::NOTIFICATION_EXTENSION_INSTALLED_DEPRECATED,
content::Source<Profile>(profile));
registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNINSTALLED,
content::Source<Profile>(profile));
@@ -133,7 +135,7 @@ void StateStore::Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {
switch (type) {
- case chrome::NOTIFICATION_EXTENSION_INSTALLED:
+ case chrome::NOTIFICATION_EXTENSION_INSTALLED_DEPRECATED:
RemoveKeysForExtension(
content::Details<const InstalledExtensionInfo>(details)->extension->
id());

Powered by Google App Engine
This is Rietveld 408576698