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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java

Issue 1486053003: Android: Add support for TraceEvent before the native library is loaded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + fix test. Created 4 years, 5 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: chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java
index ffe3e02dfe939b36c7c250c843eecd339b4c3f11..1715d7edf372be9a7ec31bf1a59fd1d459ab6d4f 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java
@@ -206,6 +206,10 @@ public class ChromeApplication extends ContentApplication {
@Override
public void onCreate() {
UmaUtils.recordMainEntryPointTime();
+ initCommandLine();
+ TraceEvent.maybeEnableEarlyTracing();
+ TraceEvent.begin("ChromeApplication.onCreate");
+
super.onCreate();
ContextUtils.initApplicationContext(this);
@@ -244,6 +248,7 @@ public class ChromeApplication extends ContentApplication {
// in the SyncController constructor.
UniqueIdentificationGeneratorFactory.registerGenerator(SyncController.GENERATOR_ID,
new UuidBasedUniqueIdentificationGenerator(this, SESSIONS_UUID_PREF_KEY), false);
+ TraceEvent.end("ChromeApplication.onCreate");
}
/**

Powered by Google App Engine
This is Rietveld 408576698