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

Side by Side Diff: mojo/runner/android/main.cc

Issue 1340983002: Mandoline UI Process: Update namespaces and file names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased 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 unified diff | Download patch
« no previous file with comments | « mojo/gles2/command_buffer_client_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/runner/android/main.h" 5 #include "mojo/runner/android/main.h"
6 6
7 #include "base/android/fifo_utils.h" 7 #include "base/android/fifo_utils.h"
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/android/jni_array.h" 9 #include "base/android/jni_array.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 LazyInstance<scoped_ptr<base::MessageLoop>> g_java_message_loop = 49 LazyInstance<scoped_ptr<base::MessageLoop>> g_java_message_loop =
50 LAZY_INSTANCE_INITIALIZER; 50 LAZY_INSTANCE_INITIALIZER;
51 51
52 LazyInstance<scoped_ptr<Context>> g_context = LAZY_INSTANCE_INITIALIZER; 52 LazyInstance<scoped_ptr<Context>> g_context = LAZY_INSTANCE_INITIALIZER;
53 53
54 LazyInstance<base::android::ScopedJavaGlobalRef<jobject>> g_main_activiy = 54 LazyInstance<base::android::ScopedJavaGlobalRef<jobject>> g_main_activiy =
55 LAZY_INSTANCE_INITIALIZER; 55 LAZY_INSTANCE_INITIALIZER;
56 56
57 void ConfigureAndroidServices(Context* context) { 57 void ConfigureAndroidServices(Context* context) {
58 context->application_manager()->SetLoaderForURL( 58 context->application_manager()->SetLoaderForURL(
59 make_scoped_ptr(new UIApplicationLoader( 59 make_scoped_ptr(
60 make_scoped_ptr(new view_manager::AndroidLoader()), 60 new UIApplicationLoader(make_scoped_ptr(new mus::AndroidLoader()),
61 g_java_message_loop.Get().get())), 61 g_java_message_loop.Get().get())),
62 GURL("mojo:mus")); 62 GURL("mojo:mus"));
63 63
64 // Android handler is bundled with the Mojo shell, because it uses the 64 // Android handler is bundled with the Mojo shell, because it uses the
65 // MojoShell application as the JNI bridge to bootstrap execution of other 65 // MojoShell application as the JNI bridge to bootstrap execution of other
66 // Android Mojo apps that need JNI. 66 // Android Mojo apps that need JNI.
67 context->application_manager()->SetLoaderForURL( 67 context->application_manager()->SetLoaderForURL(
68 make_scoped_ptr(new BackgroundApplicationLoader( 68 make_scoped_ptr(new BackgroundApplicationLoader(
69 make_scoped_ptr(new AndroidHandlerLoader()), "android_handler", 69 make_scoped_ptr(new AndroidHandlerLoader()), "android_handler",
70 base::MessageLoop::TYPE_DEFAULT)), 70 base::MessageLoop::TYPE_DEFAULT)),
71 GURL("mojo:android_handler")); 71 GURL("mojo:android_handler"));
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 base::AtExitManager at_exit; 187 base::AtExitManager at_exit;
188 base::CommandLine::Init(argc, argv); 188 base::CommandLine::Init(argc, argv);
189 189
190 #if !defined(OFFICIAL_BUILD) 190 #if !defined(OFFICIAL_BUILD)
191 base::debug::EnableInProcessStackDumping(); 191 base::debug::EnableInProcessStackDumping();
192 #endif 192 #endif
193 193
194 mojo::runner::InitializeLogging(); 194 mojo::runner::InitializeLogging();
195 return mojo::runner::ChildProcessMain(); 195 return mojo::runner::ChildProcessMain();
196 } 196 }
OLDNEW
« no previous file with comments | « mojo/gles2/command_buffer_client_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698