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

Unified Diff: content/renderer/renderer_main.cc

Issue 611393002: Rationalize and fix chromium android linker histogram recording. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move renderer UMA update call. Created 6 years, 2 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: content/renderer/renderer_main.cc
diff --git a/content/renderer/renderer_main.cc b/content/renderer/renderer_main.cc
index 09e0d301bb45f099b88d64be667de6036607d909..09388d4c9ecc6cde23c3078acce4db912f1f4d14 100644
--- a/content/renderer/renderer_main.cc
+++ b/content/renderer/renderer_main.cc
@@ -32,6 +32,7 @@
#include "ui/base/ui_base_switches.h"
#if defined(OS_ANDROID)
+#include "base/android/library_loader/library_loader_hooks.h"
#include "third_party/skia/include/core/SkGraphics.h"
#endif // OS_ANDROID
@@ -162,6 +163,11 @@ int RendererMain(const MainFunctionParams& parameters) {
// Initialize histogram statistics gathering system.
base::StatisticsRecorder::Initialize();
+#if defined(OS_ANDROID)
+ // If we have a pending chromium android linker histogram, record it.
+ base::android::RecordChromiumAndroidLinkerRendererHistogram();
+#endif
+
// Initialize statistical testing infrastructure. We set the entropy provider
// to NULL to disallow the renderer process from creating its own one-time
// randomized trials; they should be created in the browser process.

Powered by Google App Engine
This is Rietveld 408576698