Commit b4574c02 authored by mihaip@chromium.org's avatar mihaip@chromium.org

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
parent c1b6147f
...@@ -175,6 +175,10 @@ void WebstoreInlineInstaller::BeginInstall() { ...@@ -175,6 +175,10 @@ void WebstoreInlineInstaller::BeginInstall() {
tab_contents()->browser_context()); tab_contents()->browser_context());
webstore_data_url_fetcher_->SetRequestContext( webstore_data_url_fetcher_->SetRequestContext(
profile->GetRequestContext()); 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 | webstore_data_url_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES |
net::LOAD_DO_NOT_SAVE_COOKIES | net::LOAD_DO_NOT_SAVE_COOKIES |
net::LOAD_DISABLE_CACHE); net::LOAD_DISABLE_CACHE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment