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

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

Issue 10356052: Disable off-store extension installs by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: argh Created 8 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/webstore_installer.cc
diff --git a/chrome/browser/extensions/webstore_installer.cc b/chrome/browser/extensions/webstore_installer.cc
index f86eba436c49c6ae3372c36950f69f4eb8eda5c3..36f8305027932d507570f3b3dbdb771a7bb7cbdf 100644
--- a/chrome/browser/extensions/webstore_installer.cc
+++ b/chrome/browser/extensions/webstore_installer.cc
@@ -290,9 +290,7 @@ void WebstoreInstaller::StartDownload(const FilePath& file) {
// checks in ExtensionService::IsDownloadFromGallery. We should instead pass
// the real referrer, track if this is an inline install in the whitelist
// entry and look that up when checking that this is a valid download.
- GURL referrer = controller_->GetActiveEntry()->GetURL();
- if (flags_ & FLAG_INLINE_INSTALL)
- referrer = GURL(extension_urls::GetWebstoreItemDetailURLPrefix() + id_);
+ GURL referrer = GURL(extension_urls::GetWebstoreItemDetailURLPrefix() + id_);
Mihai Parparita -not on Chrome 2012/05/12 00:15:45 For the sake of posterity, Aaron and I discussed t
content::DownloadSaveInfo save_info;
save_info.file_path = file;

Powered by Google App Engine
This is Rietveld 408576698