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

Unified Diff: base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java

Issue 452923004: [Android] Record UMA metrics after native initialization completes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java
diff --git a/base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java b/base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java
index 278dcfe39d1e1d4ef474c949faa762daf010416c..22ed17de9ffe1a706f151527f0ceb2e2dbfeeb22 100644
--- a/base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java
+++ b/base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java
@@ -224,7 +224,10 @@ public class LibraryLoader {
// From now on, keep tracing in sync with native.
TraceEvent.registerNativeEnabledObserver();
+ }
+ // Called after all native initializations are complete.
+ public static void onNativeInitializationComplete() {
Yaron 2014/08/12 01:23:52 Ideally you could register for this event but I se
Feng Qian 2014/08/12 16:47:01 Good to know the event mechanism. Filed the follow
// Record histogram for the Chromium linker.
if (Linker.isUsed()) {
nativeRecordChromiumAndroidLinkerHistogram(Linker.loadAtFixedAddressFailed(),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698