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

Unified Diff: chrome/browser/ui/webui/devtools_ui.cc

Issue 1220963005: Update base::StartsWith calls to new form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@starts_with
Patch Set: Created 5 years, 6 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: chrome/browser/ui/webui/devtools_ui.cc
diff --git a/chrome/browser/ui/webui/devtools_ui.cc b/chrome/browser/ui/webui/devtools_ui.cc
index 7a87620aa8f74084fc60130016e366ccc9b99292..7960c0f6ab23cb1ee48c9be82589deaf10dd6324 100644
--- a/chrome/browser/ui/webui/devtools_ui.cc
+++ b/chrome/browser/ui/webui/devtools_ui.cc
@@ -143,7 +143,8 @@ void DevToolsDataSource::StartDataRequest(
// Serve request from local bundle.
std::string bundled_path_prefix(chrome::kChromeUIDevToolsBundledPath);
bundled_path_prefix += "/";
- if (base::StartsWithASCII(path, bundled_path_prefix, false)) {
+ if (base::StartsWith(path, bundled_path_prefix,
+ base::CompareCase::INSENSITIVE_ASCII)) {
StartBundledDataRequest(path.substr(bundled_path_prefix.length()),
render_process_id, render_frame_id, callback);
return;
@@ -152,7 +153,8 @@ void DevToolsDataSource::StartDataRequest(
// Serve request from remote location.
std::string remote_path_prefix(chrome::kChromeUIDevToolsRemotePath);
remote_path_prefix += "/";
- if (base::StartsWithASCII(path, remote_path_prefix, false)) {
+ if (base::StartsWith(path, remote_path_prefix,
+ base::CompareCase::INSENSITIVE_ASCII)) {
StartRemoteDataRequest(path.substr(remote_path_prefix.length()),
render_process_id, render_frame_id, callback);
return;

Powered by Google App Engine
This is Rietveld 408576698