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

Unified Diff: mojo/dart/embedder/dart_controller.cc

Issue 1641513004: Update //base to chromium 9659b08ea5a34f889dc4166217f438095ddc10d2 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 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: mojo/dart/embedder/dart_controller.cc
diff --git a/mojo/dart/embedder/dart_controller.cc b/mojo/dart/embedder/dart_controller.cc
index 98e268823c287e4772ff83cc76184f01cb85184d..e3779a153e42f093f600214695dc21ddb2505c49 100644
--- a/mojo/dart/embedder/dart_controller.cc
+++ b/mojo/dart/embedder/dart_controller.cc
@@ -264,7 +264,7 @@ Dart_Handle DartController::LibraryTagHandler(Dart_LibraryTag tag,
Dart_Handle url) {
if (tag == Dart_kCanonicalizeUrl) {
std::string string = tonic::StdStringFromDart(url);
- if (StartsWithASCII(string, "dart:", true))
+ if (base::StartsWith(string, "dart:", base::CompareCase::SENSITIVE))
return url;
}
return tonic::DartLibraryLoader::HandleLibraryTag(tag, library, url);
@@ -451,7 +451,8 @@ Dart_Isolate DartController::IsolateCreateCallback(const char* script_uri,
// If it's a file URI, strip the scheme.
const char* file_scheme = "file://";
- if (StartsWithASCII(script_uri_string, file_scheme, true)) {
+ if (base::StartsWith(script_uri_string, file_scheme,
+ base::CompareCase::SENSITIVE)) {
script_uri_string = script_uri_string.substr(strlen(file_scheme));
}

Powered by Google App Engine
This is Rietveld 408576698