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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chrome_browser_main_android.h" 5 #include "chrome/browser/chrome_browser_main_android.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "chrome/browser/google/google_search_counter_android.h"
10 #include "chrome/common/chrome_paths.h" 11 #include "chrome/common/chrome_paths.h"
11 #include "chrome/common/chrome_switches.h" 12 #include "chrome/common/chrome_switches.h"
12 #include "components/breakpad/app/breakpad_linux.h" 13 #include "components/breakpad/app/breakpad_linux.h"
13 #include "components/breakpad/browser/crash_dump_manager_android.h" 14 #include "components/breakpad/browser/crash_dump_manager_android.h"
14 #include "content/public/browser/android/compositor.h" 15 #include "content/public/browser/android/compositor.h"
15 #include "content/public/common/main_function_params.h" 16 #include "content/public/common/main_function_params.h"
16 #include "net/android/network_change_notifier_factory_android.h" 17 #include "net/android/network_change_notifier_factory_android.h"
17 #include "net/base/network_change_notifier.h" 18 #include "net/base/network_change_notifier.h"
18 #include "ui/base/resource/resource_bundle.h" 19 #include "ui/base/resource/resource_bundle.h"
19 #include "ui/base/ui_base_paths.h" 20 #include "ui/base/ui_base_paths.h"
(...skipping 24 matching lines...) Expand all
44 45
45 if (breakpad_enabled) { 46 if (breakpad_enabled) {
46 base::FilePath crash_dump_dir; 47 base::FilePath crash_dump_dir;
47 PathService::Get(chrome::DIR_CRASH_DUMPS, &crash_dump_dir); 48 PathService::Get(chrome::DIR_CRASH_DUMPS, &crash_dump_dir);
48 crash_dump_manager_.reset(new breakpad::CrashDumpManager(crash_dump_dir)); 49 crash_dump_manager_.reset(new breakpad::CrashDumpManager(crash_dump_dir));
49 } 50 }
50 51
51 ChromeBrowserMainParts::PreProfileInit(); 52 ChromeBrowserMainParts::PreProfileInit();
52 } 53 }
53 54
55 void ChromeBrowserMainPartsAndroid::PostProfileInit() {
56 search_counter_.reset(new GoogleSearchCounterAndroid(profile()));
57 ChromeBrowserMainParts::PostProfileInit();
58 }
59
54 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() { 60 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() {
55 TRACE_EVENT0("startup", 61 TRACE_EVENT0("startup",
56 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization") 62 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization")
57 net::NetworkChangeNotifier::SetFactory( 63 net::NetworkChangeNotifier::SetFactory(
58 new net::NetworkChangeNotifierFactoryAndroid()); 64 new net::NetworkChangeNotifierFactoryAndroid());
59 65
60 content::Compositor::Initialize(); 66 content::Compositor::Initialize();
61 67
62 // Chrome on Android does not use default MessageLoop. It has its own 68 // Chrome on Android does not use default MessageLoop. It has its own
63 // Android specific MessageLoop. 69 // Android specific MessageLoop.
(...skipping 12 matching lines...) Expand all
76 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization:StartUiMsgLoop"); 82 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization:StartUiMsgLoop");
77 base::MessageLoopForUI::current()->Start(); 83 base::MessageLoopForUI::current()->Start();
78 } 84 }
79 85
80 ChromeBrowserMainParts::PreEarlyInitialization(); 86 ChromeBrowserMainParts::PreEarlyInitialization();
81 } 87 }
82 88
83 void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() { 89 void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() {
84 NOTREACHED(); 90 NOTREACHED();
85 } 91 }
OLDNEW
« 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