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

Unified Diff: chrome/browser/chromeos/file_manager/app_installer.cc

Issue 437593006: Video Player: Install the cast API extension if it is not installed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test Created 6 years, 4 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/chromeos/file_manager/app_installer.cc
diff --git a/chrome/browser/chromeos/file_manager/app_installer.cc b/chrome/browser/chromeos/file_manager/app_installer.cc
index 18ffcd52bc5f82da3d793813a7a71c8f2a0296a7..0f5c7a1979c1792ba96a0cbfd50488c1787d6772 100644
--- a/chrome/browser/chromeos/file_manager/app_installer.cc
+++ b/chrome/browser/chromeos/file_manager/app_installer.cc
@@ -36,8 +36,10 @@ class AppInstaller::WebContentsObserver : public content::WebContentsObserver {
AppInstaller::AppInstaller(content::WebContents* web_contents,
const std::string& item_id,
Profile* profile,
+ bool silent_installation,
const Callback& callback)
: extensions::WebstoreStandaloneInstaller(item_id, profile, callback),
+ silent_installation_(silent_installation),
callback_(callback),
web_contents_(web_contents),
web_contents_observer_(new WebContentsObserver(web_contents, this)) {
@@ -56,6 +58,9 @@ const GURL& AppInstaller::GetRequestorURL() const {
scoped_refptr<ExtensionInstallPrompt::Prompt>
AppInstaller::CreateInstallPrompt() const {
+ if (silent_installation_)
+ return NULL;
+
scoped_refptr<ExtensionInstallPrompt::Prompt> prompt(
new ExtensionInstallPrompt::Prompt(
ExtensionInstallPrompt::INLINE_INSTALL_PROMPT));
« no previous file with comments | « chrome/browser/chromeos/file_manager/app_installer.h ('k') | chrome/common/extensions/api/file_browser_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698