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

Unified Diff: mojo/runner/android/main.cc

Issue 1343823002: Revert of Move fetching logic out of ApplicationManager, eliminate url mappings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « mojo/runner/about_fetcher_unittest.cc ('k') | mojo/runner/child_process_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/android/main.cc
diff --git a/mojo/runner/android/main.cc b/mojo/runner/android/main.cc
index 9759f824be7b7bee86ddd084be7d49e2164d215c..2b4de3f70fa9820849c2739473135d2f9f40c242 100644
--- a/mojo/runner/android/main.cc
+++ b/mojo/runner/android/main.cc
@@ -132,9 +132,9 @@
// We want ~MessageLoop to happen prior to ~Context. Initializing
// LazyInstances is akin to stack-allocating objects; their destructors
// will be invoked first-in-last-out.
- base::FilePath shell_file_root(
- base::android::ConvertJavaStringToUTF8(env, j_local_apps_directory));
- Context* shell_context = new Context(shell_file_root);
+ Context* shell_context = new Context();
+ shell_context->SetShellFileRoot(base::FilePath(
+ base::android::ConvertJavaStringToUTF8(env, j_local_apps_directory)));
g_context.Get().reset(shell_context);
g_java_message_loop.Get().reset(new base::MessageLoopForUI);
« no previous file with comments | « mojo/runner/about_fetcher_unittest.cc ('k') | mojo/runner/child_process_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698