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

Unified Diff: tonic/dart_library_provider_files.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
« no previous file with comments | « third_party/zlib/google/zip_reader.cc ('k') | tonic/dart_library_provider_network.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tonic/dart_library_provider_files.cc
diff --git a/tonic/dart_library_provider_files.cc b/tonic/dart_library_provider_files.cc
index 133cd57d74e01a37deae9e24557140c10fcd59a1..25a30012685d2e11f16073640eb9249e1380d36a 100644
--- a/tonic/dart_library_provider_files.cc
+++ b/tonic/dart_library_provider_files.cc
@@ -62,17 +62,17 @@ void DartLibraryProviderFiles::GetLibraryAsStream(
}
std::string DartLibraryProviderFiles::CanonicalizePackageURL(std::string url) {
- DCHECK(StartsWithASCII(url, "package:", true));
- ReplaceFirstSubstringAfterOffset(&url, 0, "package:", "");
+ DCHECK(base::StartsWithASCII(url, "package:", true));
+ base::ReplaceFirstSubstringAfterOffset(&url, 0, "package:", "");
return package_root_.Append(url).AsUTF8Unsafe();
}
Dart_Handle DartLibraryProviderFiles::CanonicalizeURL(Dart_Handle library,
Dart_Handle url) {
std::string string = StdStringFromDart(url);
- if (StartsWithASCII(string, "dart:", true))
+ if (base::StartsWithASCII(string, "dart:", true))
return url;
- if (StartsWithASCII(string, "package:", true))
+ if (base::StartsWithASCII(string, "package:", true))
return StdStringToDart(CanonicalizePackageURL(string));
base::FilePath base_path(StdStringFromDart(Dart_LibraryUrl(library)));
base::FilePath resolved_path = base_path.DirName().Append(string);
« no previous file with comments | « third_party/zlib/google/zip_reader.cc ('k') | tonic/dart_library_provider_network.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698