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

Unified Diff: chrome/browser/net/predictor_unittest.cc

Issue 2485253002: Remove unnecessary calls to GURL() (Closed)
Patch Set: Fix broken tests Created 4 years, 1 month 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/net/predictor_unittest.cc
diff --git a/chrome/browser/net/predictor_unittest.cc b/chrome/browser/net/predictor_unittest.cc
index 9b947c0b02e020f9eb980862a5513558d3b7e554..30c1ca5e37e1dbacf3872e0a4fe0f02d527173ee 100644
--- a/chrome/browser/net/predictor_unittest.cc
+++ b/chrome/browser/net/predictor_unittest.cc
@@ -67,7 +67,7 @@ static const base::ListValue* FindSerializationMotivation(
referral_list->GetList(i, &motivation_list);
std::string existing_spec;
EXPECT_TRUE(motivation_list->GetString(0, &existing_spec));
- if (motivation == GURL(existing_spec))
+ if (motivation == existing_spec)
Charlie Harrison 2016/11/09 21:12:58 Let's keep the GURL() here, or at least DCHECK tha
cfredric 2016/11/09 22:12:46 Done.
return motivation_list;
}
return NULL;
@@ -138,7 +138,7 @@ static bool GetDataFromSerialization(const GURL& motivation,
std::string url_spec;
EXPECT_TRUE(subresource_list->GetString(i++, &url_spec));
EXPECT_TRUE(subresource_list->GetDouble(i++, use_rate));
- if (subresource == GURL(url_spec)) {
+ if (subresource == url_spec) {
Charlie Harrison 2016/11/09 21:12:58 same here. I'm generally nervous about using this
cfredric 2016/11/09 22:12:46 Done.
return true;
}
}

Powered by Google App Engine
This is Rietveld 408576698