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

Unified Diff: chrome/browser/plugin_observer.cc

Issue 8784006: Replace the GURL referrer field of OpenURLParams with a content::Referrer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/plugin_observer.cc
diff --git a/chrome/browser/plugin_observer.cc b/chrome/browser/plugin_observer.cc
index cc9f3c9760e642c19cca5498a092fdfb29888579..b01c08379a980c12f120dbfba5307e5e5ced6dc3 100644
--- a/chrome/browser/plugin_observer.cc
+++ b/chrome/browser/plugin_observer.cc
@@ -351,7 +351,9 @@ void PluginObserver::DidNotFindMissingPlugin(int placeholder_id,
void PluginObserver::InstallMissingPlugin(PluginInstaller* installer) {
if (installer->url_for_display()) {
tab_contents()->OpenURL(OpenURLParams(
- installer->plugin_url(), tab_contents()->GetURL(),
+ installer->plugin_url(),
+ content::Referrer(tab_contents()->GetURL(),
+ WebKit::WebReferrerPolicyDefault),
NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_TYPED, false));
} else {
NOTIMPLEMENTED();

Powered by Google App Engine
This is Rietveld 408576698