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

Unified Diff: chrome/browser/extensions/external_provider_impl.h

Issue 15899007: Add ability to keep external extension for existing user but don't install it for new users (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + s/LOG(INFO)/VLOG(1)/ Created 7 years, 7 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/external_provider_impl.h
diff --git a/chrome/browser/extensions/external_provider_impl.h b/chrome/browser/extensions/external_provider_impl.h
index 6c31b90a4c600d8394a95495a39fd5d44c857866..ef6a8907c6508b07528fa896dab9cb77eb424bf6 100644
--- a/chrome/browser/extensions/external_provider_impl.h
+++ b/chrome/browser/extensions/external_provider_impl.h
@@ -38,6 +38,7 @@ class ExternalProviderImpl : public ExternalProviderInterface {
// be initialized as Manifest::INVALID_LOCATION.
ExternalProviderImpl(VisitorInterface* service,
ExternalLoader* loader,
+ Profile* profile,
Manifest::Location crx_location,
Manifest::Location download_location,
int creation_flags);
@@ -71,6 +72,7 @@ class ExternalProviderImpl : public ExternalProviderInterface {
static const char kSupportedLocales[];
static const char kIsBookmarkApp[];
static const char kIsFromWebstore[];
+ static const char kKeepIfPresent[];
void set_auto_acknowledge(bool auto_acknowledge) {
auto_acknowledge_ = auto_acknowledge;
@@ -100,6 +102,9 @@ class ExternalProviderImpl : public ExternalProviderInterface {
// via |SetPrefs|.
scoped_refptr<ExternalLoader> loader_;
+ // The profile that will be used to install external extensions.
+ Profile* profile_;
+
// Creation flags to use for the extension. These flags will be used
// when calling Extension::Create() by the crx installer.
int creation_flags_;
« no previous file with comments | « chrome/browser/extensions/external_policy_loader_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