|
Add operator==(const GURL&, const StringPiece&) to gurl.h.
This patch moves GURL::operator==(const GURL&) to a free-floating function,
and adds a new function to allow comparisons with StringPiece specs.
The new equality operator should be used when the spec of the URL is known
apriori, and parsing a GURL is not necessary for a comparison. This is
specifically designed to replace the case where we compare:
<url> = GURL(kUrlStringConstant).
One such case is replaced by this patch, and the rest will be modified in
a followup.
Note: this patch requires changes to instances of
base::Bind(&GURL::operator==...). They have been edited to use static_cast
to let Bind know that the operator== acts on GURLs.
BUG= 655467
Committed: https://crrev.com/ebeca8e21727b975523416e9abaa2a4024ac36f5
Cr-Commit-Position: refs/heads/master@{#425863}
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+71 lines, -45 lines) |
Patch |
 |
M |
chrome/browser/history/history_utils.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/password_manager/native_backend_gnome_x_unittest.cc
|
View
|
|
1 chunk |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/password_manager/native_backend_kwallet_x_unittest.cc
|
View
|
|
1 chunk |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/password_manager/native_backend_libsecret_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/password_manager/password_store_mac_unittest.cc
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/search_engines/template_url_service_unittest.cc
|
View
|
|
3 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/autofill/form_autofill_browsertest.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/extensions/chrome_extensions_renderer_client.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/domain_reliability/monitor_unittest.cc
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/password_manager/core/browser/statistics_table_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/power/origin_power_map_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_manager_impl_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/render_frame_impl.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
extensions/renderer/script_injection_manager.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
net/quic/chromium/quic_stream_factory_test.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
url/gurl.h
|
View
|
1
|
2 chunks |
+9 lines, -4 lines |
0 comments
|
Download
|
 |
M |
url/gurl.cc
|
View
|
|
2 chunks |
+16 lines, -8 lines |
0 comments
|
Download
|
Total messages: 21 (13 generated)
|