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

Unified Diff: mojo/runner/shell_apptest.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
« no previous file with comments | « media/video/capture/win/video_capture_device_factory_win.cc ('k') | pdf/document_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/shell_apptest.cc
diff --git a/mojo/runner/shell_apptest.cc b/mojo/runner/shell_apptest.cc
index 2a943d6e7f006d5f00c917e5f3ec09952ec015ca..13ddf36e7b83397d4d4f2908887e366575bc9e3a 100644
--- a/mojo/runner/shell_apptest.cc
+++ b/mojo/runner/shell_apptest.cc
@@ -42,7 +42,8 @@ class GetHandler : public http_server::HttpHandler {
http_server::HttpRequestPtr request,
const Callback<void(http_server::HttpResponsePtr)>& callback) override {
http_server::HttpResponsePtr response;
- if (base::StartsWithASCII(request->relative_url, "/app", true)) {
+ if (base::StartsWith(request->relative_url, "/app",
+ base::CompareCase::SENSITIVE)) {
response = http_server::CreateHttpResponse(
200, std::string(kPingable.data, kPingable.size));
response->content_type = "application/octet-stream";
« no previous file with comments | « media/video/capture/win/video_capture_device_factory_win.cc ('k') | pdf/document_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698