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

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

Issue 8785004: Change NavigationController::LoadURL to take a Referrer class instead of a GURL as referrer (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/browser_feature_extractor_unittest.cc
diff --git a/chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc b/chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc
index bf5d623116e641b7a5490da92630b2041385933d..3bc5a74426ddc480128def7c95c36c6382db98d9 100644
--- a/chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc
+++ b/chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc
@@ -92,7 +92,9 @@ class BrowserFeatureExtractorTest : public ChromeRenderViewHostTestHarness {
void NavigateAndCommit(const GURL& url,
const GURL& referrer,
content::PageTransition type) {
- contents()->controller().LoadURL(url, referrer, type, std::string());
+ contents()->controller().LoadURL(
+ url, content::Referrer(referrer, WebKit::WebReferrerPolicyDefault),
+ type, std::string());
static int page_id = 0;
ViewHostMsg_FrameNavigate_Params params;
« no previous file with comments | « chrome/browser/prerender/prerender_contents.cc ('k') | chrome/browser/safe_browsing/malware_details_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698