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

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

Issue 14238037: Made it possible to tell whether an extension is being installed or updated. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added extra check. Created 7 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
Index: chrome/browser/extensions/state_store.cc
diff --git a/chrome/browser/extensions/state_store.cc b/chrome/browser/extensions/state_store.cc
index 5b6b9b219be2034373d6524ebe8494ef13cca779..f46685bf8b5909014178c7fb7e17ee171e01ed8f 100644
--- a/chrome/browser/extensions/state_store.cc
+++ b/chrome/browser/extensions/state_store.cc
@@ -129,9 +129,13 @@ void StateStore::Observe(int type,
const content::NotificationDetails& details) {
switch (type) {
case chrome::NOTIFICATION_EXTENSION_INSTALLED:
+ RemoveKeysForExtension(
+ content::Details<const InstalledExtensionInfo>(details)->extension->
+ id());
+ break;
case chrome::NOTIFICATION_EXTENSION_UNINSTALLED:
RemoveKeysForExtension(
- content::Details<const Extension>(details).ptr()->id());
+ content::Details<const Extension>(details)->id());
break;
case chrome::NOTIFICATION_SESSION_RESTORE_DONE:
case content::NOTIFICATION_LOAD_COMPLETED_MAIN_FRAME:
« no previous file with comments | « chrome/browser/extensions/extension_service_unittest.cc ('k') | chrome/browser/extensions/updater/extension_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698