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

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

Issue 8391004: Add webstorePrivate API for installing bundles of extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 2 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/crx_installer.cc
diff --git a/chrome/browser/extensions/crx_installer.cc b/chrome/browser/extensions/crx_installer.cc
index 514ebe26ed85a833c1e9d8d4b355ed924f8aa8d3..cff64aad6e14322f455db22f03b039cc6d7fad4c 100644
--- a/chrome/browser/extensions/crx_installer.cc
+++ b/chrome/browser/extensions/crx_installer.cc
@@ -44,6 +44,8 @@
namespace {
+// TODO(jstritar): This whitelist is not profile aware. We should move this to
+// WebstorePendingInstalls.
struct Whitelist {
Whitelist() {}
std::set<std::string> ids;
@@ -56,7 +58,8 @@ static base::LazyInstance<Whitelist>
} // namespace
CrxInstaller::WhitelistEntry::WhitelistEntry()
- : use_app_installed_bubble(false) {}
+ : use_app_installed_bubble(false),
+ skip_post_install_ui(false) {}
CrxInstaller::WhitelistEntry::~WhitelistEntry() {}
// static
@@ -414,6 +417,8 @@ void CrxInstaller::ConfirmInstall() {
whitelisted = true;
if (entry->use_app_installed_bubble)
client_->set_use_app_installed_bubble(true);
+ if (entry->skip_post_install_ui)
+ client_->set_skip_post_install_ui(true);
}
if (client_ &&
« no previous file with comments | « chrome/browser/extensions/crx_installer.h ('k') | chrome/browser/extensions/extension_function_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698