| Index: mojo/runner/android/main.cc
|
| diff --git a/mojo/runner/android/main.cc b/mojo/runner/android/main.cc
|
| index 074ee6fe780d46f5ddd1c817b0caf14695f6d76e..3c014624bd6fd9b58062306d42187c576b84824d 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);
|
|
|