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

Unified Diff: chrome/browser/chromeos/enterprise_extension_observer.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 | « apps/shortcut_manager.cc ('k') | chrome/browser/chromeos/screensaver/screensaver_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/enterprise_extension_observer.cc
diff --git a/chrome/browser/chromeos/enterprise_extension_observer.cc b/chrome/browser/chromeos/enterprise_extension_observer.cc
index add3b7f8ea9e636a86f2d21784521dfce61ac235..f34632e2e648c713fe5e5fd2e9112efa8c598882 100644
--- a/chrome/browser/chromeos/enterprise_extension_observer.cc
+++ b/chrome/browser/chromeos/enterprise_extension_observer.cc
@@ -34,8 +34,9 @@ void EnterpriseExtensionObserver::Observe(
if (content::Source<Profile>(source).ptr() != profile_) {
return;
}
- extensions::Extension* extension =
- content::Details<extensions::Extension>(details).ptr();
+ const extensions::Extension* extension =
+ content::Details<const extensions::InstalledExtensionInfo>(details)->
+ extension;
if (extension->location() !=
extensions::Manifest::EXTERNAL_POLICY_DOWNLOAD) {
return;
« no previous file with comments | « apps/shortcut_manager.cc ('k') | chrome/browser/chromeos/screensaver/screensaver_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698