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

Unified Diff: content/browser/tracing/tracing_ui.cc

Issue 1242023005: Remove legacy StartsWithASCII function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: y Created 5 years, 5 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: content/browser/tracing/tracing_ui.cc
diff --git a/content/browser/tracing/tracing_ui.cc b/content/browser/tracing/tracing_ui.cc
index 1afff96cab38184742799ae70d4d4f469daca699..b83376d8eb7eb01ea1c3612bc4d4121d24b1d103 100644
--- a/content/browser/tracing/tracing_ui.cc
+++ b/content/browser/tracing/tracing_ui.cc
@@ -207,7 +207,8 @@ bool OnBeginJSONRequest(const std::string& path,
}
const char* beginRecordingPath = "json/begin_recording?";
- if (base::StartsWithASCII(path, beginRecordingPath, true)) {
+ if (base::StartsWith(path, beginRecordingPath,
+ base::CompareCase::SENSITIVE)) {
std::string data = path.substr(strlen(beginRecordingPath));
return BeginRecording(data, callback);
}
@@ -253,7 +254,7 @@ bool OnBeginJSONRequest(const std::string& path,
bool OnTracingRequest(const std::string& path,
const WebUIDataSource::GotDataCallback& callback) {
- if (base::StartsWithASCII(path, "json/", true)) {
+ if (base::StartsWith(path, "json/", base::CompareCase::SENSITIVE)) {
if (!OnBeginJSONRequest(path, callback)) {
std::string error("##ERROR##");
callback.Run(base::RefCountedString::TakeString(&error));
« no previous file with comments | « content/browser/session_history_browsertest.cc ('k') | content/browser/webui/shared_resources_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698