|
Replace string::find(prefix) == 0 pattern with base::StartsWith().
base::StartsWith() should be O(|prefix|) whereas string::find() is
pretty bad, O(|string| * |prefix|).
TBR=jam@chromium.org
BUG=None
Test=None, internal cleanup.
CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win10_chromium_x64_rel_ng
Committed: https://crrev.com/53bfbe932191085b5d69f824a9923bccc26d58dc
Cr-Commit-Position: refs/heads/master@{#404307}
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+87 lines, -47 lines) |
Patch |
 |
M |
base/trace_event/trace_config.cc
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/apps/guest_view/web_view_browsertest.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/profiles/profile_helper.cc
|
View
|
1
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_browsertest.cc
|
View
|
1
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/cookies/cookies_helpers.cc
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/profile_avatar_icon_util.cc
|
View
|
1
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/browser_navigator_browsertest.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/find_bar/find_bar_controller.cc
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/test/chromedriver/net/adb_client_socket.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/test/chromedriver/session_commands.cc
|
View
|
1
|
2 chunks |
+5 lines, -3 lines |
4 comments
|
Download
|
 |
M |
chromeos/settings/timezone_settings.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/devtools_http_handler/devtools_http_handler.cc
|
View
|
|
6 chunks |
+10 lines, -8 lines |
0 comments
|
Download
|
 |
M |
components/leveldb/env_mojo.cc
|
View
|
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/os_crypt/os_crypt_posix.cc
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/sync_sessions/favicon_cache_unittest.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/dom_storage/session_storage_database.cc
|
View
|
|
4 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/dom_storage/session_storage_database_unittest.cc
|
View
|
|
5 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/iframe_zoom_browsertest.cc
|
View
|
1
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/webui/shared_resources_data_source.cc
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/blink/buffered_resource_loader.cc
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/blink/resource_multibuffer_data_provider.cc
|
View
|
1
|
2 chunks |
+6 lines, -3 lines |
2 comments
|
Download
|
 |
M |
net/base/filename_util.cc
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/cookies/canonical_cookie.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ppapi/shared_impl/test_utils.cc
|
View
|
|
1 chunk |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sandbox/win/src/win_utils.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
Total messages: 23 (9 generated)
|