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

Unified Diff: chrome/browser/sync_file_system/sync_file_system_service.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
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/common/chrome_notification_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/sync_file_system_service.cc
diff --git a/chrome/browser/sync_file_system/sync_file_system_service.cc b/chrome/browser/sync_file_system/sync_file_system_service.cc
index 963fc11b10a2cae3ed1507212c1c0171846a44a3..6fd2968913d1d35563273c4419d99d2a23378e2e 100644
--- a/chrome/browser/sync_file_system/sync_file_system_service.cc
+++ b/chrome/browser/sync_file_system/sync_file_system_service.cc
@@ -451,6 +451,7 @@ void SyncFileSystemService::Observe(
//
// (User action) (Notification type)
// Install: INSTALLED.
+ // Update: INSTALLED.
// Uninstall: UNLOADED(UNINSTALL).
// Launch, Close: No notification.
// Enable: EABLED.
@@ -475,7 +476,9 @@ void SyncFileSystemService::Observe(
void SyncFileSystemService::HandleExtensionInstalled(
const content::NotificationDetails& details) {
- content::Details<const extensions::Extension> extension(details);
+ const extensions::Extension* extension =
+ content::Details<const extensions::InstalledExtensionInfo>(details)->
+ extension;
GURL app_origin =
extensions::Extension::GetBaseURLFromExtensionId(extension->id());
DVLOG(1) << "Handle extension notification for INSTALLED: " << app_origin;
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/common/chrome_notification_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698