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

Unified Diff: chrome/browser/safe_browsing/malware_details.cc

Issue 8806011: Make NavigationEntry and friends use content::Referrer instead of plain URLs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates 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/safe_browsing/malware_details.cc
diff --git a/chrome/browser/safe_browsing/malware_details.cc b/chrome/browser/safe_browsing/malware_details.cc
index 9455d90c4e50c35152004c82f4924f3c6b5cbddb..4f6a346d996326983788f83b3abbb08d656fd5e9 100644
--- a/chrome/browser/safe_browsing/malware_details.cc
+++ b/chrome/browser/safe_browsing/malware_details.cc
@@ -168,7 +168,7 @@ void MalwareDetails::StartCollection() {
GURL referrer_url;
NavigationEntry* nav_entry = tab_contents()->controller().GetActiveEntry();
if (nav_entry) {
- referrer_url = nav_entry->referrer();
+ referrer_url = nav_entry->referrer().url;
if (IsPublicUrl(referrer_url)) {
report_->set_referrer_url(referrer_url.spec());
}
« no previous file with comments | « chrome/browser/safe_browsing/browser_feature_extractor.cc ('k') | chrome/browser/safe_browsing/safe_browsing_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698