summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download
diff options
context:
space:
mode:
authorrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-09 17:33:18 +0000
committerrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-09 17:33:18 +0000
commitdd9d627a45031a4fe8414e79253e82fdfac7132c (patch)
treea049ade38464deffdc606ee3dec8607122e2354b /chrome/browser/download
parent422a0b90cbcd884221d3fabac3507dd964e5a064 (diff)
downloadchromium_src-dd9d627a45031a4fe8414e79253e82fdfac7132c.zip
chromium_src-dd9d627a45031a4fe8414e79253e82fdfac7132c.tar.gz
chromium_src-dd9d627a45031a4fe8414e79253e82fdfac7132c.tar.bz2
Implement gallery install API
This patch implements chrome.experimental.management.install() which is only available for use by the web store. Calling with an extensionId, causes the download url to be constructed internally and downloaded and then cause the installation to bypass the normal permissions dialog. BUG=27431,54148 Review URL: http://codereview.chromium.org/3353015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58956 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download')
-rw-r--r--chrome/browser/download/download_util.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/download/download_util.cc b/chrome/browser/download/download_util.cc
index 0ec1c29..161758f 100644
--- a/chrome/browser/download/download_util.cc
+++ b/chrome/browser/download/download_util.cc
@@ -295,6 +295,7 @@ void OpenChromeExtension(Profile* profile,
installer->set_original_url(download_item.url());
installer->set_limit_web_extent_to_download_host(!is_gallery_download);
installer->InstallCrx(download_item.full_path());
+ installer->set_allow_silent_install(is_gallery_download);
}
} else {
TabContents* contents = NULL;