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

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

Issue 2054773002: Replace the WAS_INSTALLED_BY_CUSTODIAN creation flag with a pref (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to code review by treib@ Created 4 years, 6 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/pending_extension_manager.cc
diff --git a/chrome/browser/extensions/pending_extension_manager.cc b/chrome/browser/extensions/pending_extension_manager.cc
index 632ea4da55f7e5687f2fb8b398e68e3b648b8cdf..36b53922ad54f684e0033118e2c698bedfc9a1ee 100644
--- a/chrome/browser/extensions/pending_extension_manager.cc
+++ b/chrome/browser/extensions/pending_extension_manager.cc
@@ -91,8 +91,7 @@ bool PendingExtensionManager::AddFromSync(
const GURL& update_url,
const base::Version& version,
PendingExtensionInfo::ShouldAllowInstallPredicate should_allow_install,
- bool remote_install,
- bool installed_by_custodian) {
+ bool remote_install) {
CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
if (ExtensionRegistry::Get(context_)->GetExtensionById(
@@ -111,9 +110,6 @@ bool PendingExtensionManager::AddFromSync(
}
int creation_flags = Extension::NO_FLAGS;
- if (installed_by_custodian) {
- creation_flags |= Extension::WAS_INSTALLED_BY_CUSTODIAN;
- }
static const bool kIsFromSync = true;
static const Manifest::Location kSyncLocation = Manifest::INTERNAL;

Powered by Google App Engine
This is Rietveld 408576698