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

Unified Diff: shell/android/main.cc

Issue 1105773002: Teach the mojo_shell --trace-startup flag to gather data from services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: buffer data from tracing service to avoid needing to frame it or add extra commas Created 5 years, 8 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: shell/android/main.cc
diff --git a/shell/android/main.cc b/shell/android/main.cc
index 99bdf82640d96191d7f4e6f1b6b831016888e656..ac72bcb8eb52a03dfdc588d2f357a8c71bfd3beb 100644
--- a/shell/android/main.cc
+++ b/shell/android/main.cc
@@ -221,7 +221,7 @@ 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();
+ Context* shell_context = new Context(tracer);
shell_context->SetShellFileRoot(base::FilePath(
base::android::ConvertJavaStringToUTF8(env, j_local_apps_directory)));
g_internal_data.Get().context.reset(shell_context);

Powered by Google App Engine
This is Rietveld 408576698