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

Unified Diff: chrome/browser/predictors/resource_prefetch_predictor_unittest.cc

Issue 2228003002: predictors: Fix duplicate content type detection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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/predictors/resource_prefetch_predictor_unittest.cc
diff --git a/chrome/browser/predictors/resource_prefetch_predictor_unittest.cc b/chrome/browser/predictors/resource_prefetch_predictor_unittest.cc
index 91246aa664f39264202c0fb237eea752e0d85e8f..52747307a4e12df6781f2533426baa32ee8b7950 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor_unittest.cc
+++ b/chrome/browser/predictors/resource_prefetch_predictor_unittest.cc
@@ -96,10 +96,8 @@ class ResourcePrefetchPredictorTest : public testing::Test {
NavigationID CreateNavigationID(int process_id,
int render_frame_id,
const std::string& main_frame_url) {
- NavigationID navigation_id;
- navigation_id.render_process_id = process_id;
- navigation_id.render_frame_id = render_frame_id;
- navigation_id.main_frame_url = GURL(main_frame_url);
+ NavigationID navigation_id(process_id, render_frame_id,
pasko 2016/08/09 17:08:54 for consistency it would be nice to do the same in
Benoit L 2016/08/09 17:22:56 Thanks for the suggestion. Done.
+ GURL(main_frame_url));
navigation_id.creation_time = base::TimeTicks::Now();
return navigation_id;
}

Powered by Google App Engine
This is Rietveld 408576698