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

Unified Diff: components/power/origin_power_map_unittest.cc

Issue 2421383003: Add operator==(const GURL&, const StringPiece&) to gurl.h (Closed)
Patch Set: remove comment Created 4 years, 2 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: components/power/origin_power_map_unittest.cc
diff --git a/components/power/origin_power_map_unittest.cc b/components/power/origin_power_map_unittest.cc
index 15899682b000a11fa0763ade0ec87ac219aa8416..061f9bdd2f23f420b68456bc2f0219338a41a3d6 100644
--- a/components/power/origin_power_map_unittest.cc
+++ b/components/power/origin_power_map_unittest.cc
@@ -97,8 +97,8 @@ TEST(OriginPowerMapTest, ClearOriginMap) {
EXPECT_DOUBLE_EQ(10, origin_power_map.GetPowerForOrigin(url5));
// Delete |url1|.
- origin_power_map.ClearOriginMap(
- base::Bind(&GURL::operator==, base::Unretained(&url1)));
+ origin_power_map.ClearOriginMap(base::Bind(
+ static_cast<bool (*)(const GURL&, const GURL&)>(operator==), url1));
EXPECT_DOUBLE_EQ(0, origin_power_map.GetPowerForOrigin(url1));
EXPECT_DOUBLE_EQ(40, origin_power_map.GetPowerForOrigin(url2));
EXPECT_DOUBLE_EQ(30, origin_power_map.GetPowerForOrigin(url3));

Powered by Google App Engine
This is Rietveld 408576698