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

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

Issue 282103003: Moved IS_EPHEMERAL flag to extension prefs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix up file header Created 6 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
« no previous file with comments | « chrome/browser/extensions/crx_installer.h ('k') | chrome/browser/extensions/extension_browsertest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/crx_installer.cc
diff --git a/chrome/browser/extensions/crx_installer.cc b/chrome/browser/extensions/crx_installer.cc
index e9084fa6e4c2b443e1d2560937465efa06a3667a..a6cfb3a3a144be3d7f45d9118b6199719e8650c8 100644
--- a/chrome/browser/extensions/crx_installer.cc
+++ b/chrome/browser/extensions/crx_installer.cc
@@ -132,6 +132,7 @@ CrxInstaller::CrxInstaller(base::WeakPtr<ExtensionService> service_weak,
blacklist_state_(extensions::NOT_BLACKLISTED),
install_wait_for_idle_(true),
update_from_settings_page_(false),
+ is_ephemeral_(false),
installer_(service_weak->profile()) {
installer_task_runner_ = service_weak->GetFileTaskRunner();
if (!approval)
@@ -161,9 +162,7 @@ CrxInstaller::CrxInstaller(base::WeakPtr<ExtensionService> service_weak,
}
show_dialog_callback_ = approval->show_dialog_callback;
-
- if (approval->is_ephemeral)
- creation_flags_ |= Extension::IS_EPHEMERAL;
+ is_ephemeral_ = approval->is_ephemeral;
}
CrxInstaller::~CrxInstaller() {
@@ -812,6 +811,7 @@ void CrxInstaller::ReportSuccessFromUIThread() {
page_ordinal_,
has_requirement_errors_,
blacklist_state_,
+ is_ephemeral_,
install_wait_for_idle_);
NotifyCrxInstallComplete(true);
}
« no previous file with comments | « chrome/browser/extensions/crx_installer.h ('k') | chrome/browser/extensions/extension_browsertest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698