diff options
author | mihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-17 06:19:13 +0000 |
---|---|---|
committer | mihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-17 06:19:13 +0000 |
commit | b4574c0272e974abeb24d4a952201ce48d0f6b0f (patch) | |
tree | da3f3a87ca0d7d3ae03b7a88b6bec5c3b1e40906 | |
parent | c1b6147fe4c4f075a7186ea34d6f3a242a058815 (diff) | |
download | chromium_src-b4574c0272e974abeb24d4a952201ce48d0f6b0f.zip chromium_src-b4574c0272e974abeb24d4a952201ce48d0f6b0f.tar.gz chromium_src-b4574c0272e974abeb24d4a952201ce48d0f6b0f.tar.bz2 |
Set referrer for webstore inline install requests, so we can see what the top pages that use it are
R=asargent@chromium.org
Review URL: http://codereview.chromium.org/8568037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110459 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/extensions/webstore_inline_installer.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/extensions/webstore_inline_installer.cc b/chrome/browser/extensions/webstore_inline_installer.cc index a3af2c6..a65936f 100644 --- a/chrome/browser/extensions/webstore_inline_installer.cc +++ b/chrome/browser/extensions/webstore_inline_installer.cc @@ -175,6 +175,10 @@ void WebstoreInlineInstaller::BeginInstall() { tab_contents()->browser_context()); webstore_data_url_fetcher_->SetRequestContext( profile->GetRequestContext()); + // Use the requesting page as the referrer both since that is more correct + // (it is the page that caused this request to happen) and so that we can + // track top sites that trigger inline install requests. + webstore_data_url_fetcher_->SetReferrer(requestor_url_.spec()); webstore_data_url_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES | net::LOAD_DO_NOT_SAVE_COOKIES | net::LOAD_DISABLE_CACHE); |