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

Unified Diff: components/history/core/browser/history_querying_unittest.cc

Issue 2485253002: Remove unnecessary calls to GURL() (Closed)
Patch Set: Assert that StringPiece must always be canonicalized. Fix some constants. 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: components/history/core/browser/history_querying_unittest.cc
diff --git a/components/history/core/browser/history_querying_unittest.cc b/components/history/core/browser/history_querying_unittest.cc
index 2e8fbb3c431f08f249b8ec16224805d560bb51b1..da3a53633e42bf0feb8bf6df63ea13129cb577bd 100644
--- a/components/history/core/browser/history_querying_unittest.cc
+++ b/components/history/core/browser/history_querying_unittest.cc
@@ -65,7 +65,7 @@ bool NthResultIs(const QueryResults& results,
return false;
// Now check the URL & title.
- return result.url() == GURL(test_entries[test_entry_index].url) &&
+ return result.url() == test_entries[test_entry_index].url &&
result.title() ==
base::UTF8ToUTF16(test_entries[test_entry_index].title);
}
« no previous file with comments | « components/error_page/renderer/net_error_helper_core.cc ('k') | components/history/core/test/fake_web_history_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698