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

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

Issue 1342503003: 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
Index: mojo/runner/android/main.cc
diff --git a/mojo/runner/android/main.cc b/mojo/runner/android/main.cc
index 2b4de3f70fa9820849c2739473135d2f9f40c242..9759f824be7b7bee86ddd084be7d49e2164d215c 100644
--- a/mojo/runner/android/main.cc
+++ b/mojo/runner/android/main.cc
@@ -132,9 +132,9 @@ static void Init(JNIEnv* env,
// 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.
- Context* shell_context = new Context();
- shell_context->SetShellFileRoot(base::FilePath(
- base::android::ConvertJavaStringToUTF8(env, j_local_apps_directory)));
+ base::FilePath shell_file_root(
+ base::android::ConvertJavaStringToUTF8(env, j_local_apps_directory));
+ Context* shell_context = new Context(shell_file_root);
g_context.Get().reset(shell_context);
g_java_message_loop.Get().reset(new base::MessageLoopForUI);

Powered by Google App Engine
This is Rietveld 408576698