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

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

Issue 407483002: Show post-install UI when ephemeral apps are promoted to installed apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@install_guard
Patch Set: Check ephemeral app flag in startup_helper Created 6 years, 5 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/webstore_install_with_prompt.cc
diff --git a/chrome/browser/extensions/webstore_install_with_prompt.cc b/chrome/browser/extensions/webstore_install_with_prompt.cc
index 19ab6148729884518dde45ad9c6711fababffbbd..4e69d8d08a73e8585d81cd7af3742d6f22167af4 100644
--- a/chrome/browser/extensions/webstore_install_with_prompt.cc
+++ b/chrome/browser/extensions/webstore_install_with_prompt.cc
@@ -19,6 +19,7 @@ WebstoreInstallWithPrompt::WebstoreInstallWithPrompt(
Profile* profile,
const Callback& callback)
: WebstoreStandaloneInstaller(webstore_item_id, profile, callback),
+ show_post_install_ui_(true),
dummy_web_contents_(
WebContents::Create(WebContents::CreateParams(profile))),
parent_window_(NULL) {
@@ -31,6 +32,7 @@ WebstoreInstallWithPrompt::WebstoreInstallWithPrompt(
gfx::NativeWindow parent_window,
const Callback& callback)
: WebstoreStandaloneInstaller(webstore_item_id, profile, callback),
+ show_post_install_ui_(true),
dummy_web_contents_(
WebContents::Create(WebContents::CreateParams(profile))),
parent_window_(parent_window) {
@@ -65,7 +67,7 @@ WebstoreInstallWithPrompt::CreateInstallUI() {
}
bool WebstoreInstallWithPrompt::ShouldShowPostInstallUI() const {
- return false;
+ return show_post_install_ui_;
}
bool WebstoreInstallWithPrompt::ShouldShowAppInstalledBubble() const {
« no previous file with comments | « chrome/browser/extensions/webstore_install_with_prompt.h ('k') | chrome/browser/extensions/webstore_standalone_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698