diff options
-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); |