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

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: 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
Index: chrome/browser/extensions/crx_installer.cc
diff --git a/chrome/browser/extensions/crx_installer.cc b/chrome/browser/extensions/crx_installer.cc
index 9a5e4ef6c0adddbe057327a420eb99c1bd36a0f0..d852deeb6b7cc5eece0b1bf173952ed43274de95 100644
--- a/chrome/browser/extensions/crx_installer.cc
+++ b/chrome/browser/extensions/crx_installer.cc
@@ -132,6 +132,7 @@ CrxInstaller::CrxInstaller(
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(
}
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);
}

Powered by Google App Engine
This is Rietveld 408576698