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

Unified Diff: chrome/browser/chrome_browser_main_android.cc

Issue 342053002: Add UMA metrics for Android Chrome Google Search. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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 | « chrome/browser/chrome_browser_main_android.h ('k') | chrome/browser/google/google_search_counter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main_android.cc
diff --git a/chrome/browser/chrome_browser_main_android.cc b/chrome/browser/chrome_browser_main_android.cc
index 0098f4b56b0c9fce5513217b4992638d40b21955..e18ad01a9ddf8ea84620459398938460868ffb84 100644
--- a/chrome/browser/chrome_browser_main_android.cc
+++ b/chrome/browser/chrome_browser_main_android.cc
@@ -7,6 +7,7 @@
#include "base/command_line.h"
#include "base/debug/trace_event.h"
#include "base/path_service.h"
+#include "chrome/browser/google/google_search_counter_android.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "components/breakpad/app/breakpad_linux.h"
@@ -51,6 +52,11 @@ void ChromeBrowserMainPartsAndroid::PreProfileInit() {
ChromeBrowserMainParts::PreProfileInit();
}
+void ChromeBrowserMainPartsAndroid::PostProfileInit() {
+ search_counter_.reset(new GoogleSearchCounterAndroid(profile()));
+ ChromeBrowserMainParts::PostProfileInit();
+}
+
void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() {
TRACE_EVENT0("startup",
"ChromeBrowserMainPartsAndroid::PreEarlyInitialization")
« no previous file with comments | « chrome/browser/chrome_browser_main_android.h ('k') | chrome/browser/google/google_search_counter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698