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

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

Issue 10855190: Disable sync for default apps (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: comments Created 8 years, 4 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_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index 94fbde7b7eaeadc8a2d32b04ffcce57bb0950626..ca75cd5016386469012081f284a33740927a855c 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -625,6 +625,9 @@ bool ExtensionService::UpdateExtension(
if (extension && extension->from_bookmark())
creation_flags |= Extension::FROM_BOOKMARK;
+ if (extension && extension->was_installed_by_default())
+ creation_flags |= Extension::WAS_INSTALLED_BY_DEFAULT;
+
installer->set_creation_flags(creation_flags);
installer->set_delete_source(true);
« no previous file with comments | « chrome/browser/extensions/extension_prefs_unittest.cc ('k') | chrome/browser/extensions/external_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698