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

Unified Diff: sky/shell/dart/dart_library_provider_files.cc

Issue 1237973004: Port more String and HashMap usages (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 | « sky/shell/dart/dart_library_provider_files.h ('k') | sky/shell/dart/dart_library_provider_network.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/dart/dart_library_provider_files.cc
diff --git a/sky/shell/dart/dart_library_provider_files.cc b/sky/shell/dart/dart_library_provider_files.cc
index 4c0e267ae0e1f7df8abf1b03080a94d694749a3b..2bed8e8e9e3e175127ec82d6558bb7844e8553a5 100644
--- a/sky/shell/dart/dart_library_provider_files.cc
+++ b/sky/shell/dart/dart_library_provider_files.cc
@@ -50,12 +50,12 @@ DartLibraryProviderFiles::~DartLibraryProviderFiles() {
}
void DartLibraryProviderFiles::GetLibraryAsStream(
- const String& name,
+ const std::string& name,
blink::DataPipeConsumerCallback callback) {
mojo::DataPipe pipe;
callback.Run(pipe.consumer_handle.Pass());
- base::FilePath source(name.toUTF8());
+ base::FilePath source(name);
scoped_refptr<base::TaskRunner> runner =
base::WorkerPool::GetTaskRunner(true);
mojo::common::CopyFromFile(source, pipe.producer_handle.Pass(), 0,
« no previous file with comments | « sky/shell/dart/dart_library_provider_files.h ('k') | sky/shell/dart/dart_library_provider_network.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698