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

Side by Side Diff: chrome/browser/chrome_browser_main_android.cc

Issue 1009673002: Remove enhanced bookmarks sync experiment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: rebase Created 5 years, 9 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
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/path_service.h" 8 #include "base/path_service.h"
9 #include "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 #include "chrome/browser/bookmarks/enhanced_bookmarks_features.h"
11 #include "chrome/browser/google/google_search_counter_android.h" 10 #include "chrome/browser/google/google_search_counter_android.h"
12 #include "chrome/browser/signin/signin_manager_factory.h" 11 #include "chrome/browser/signin/signin_manager_factory.h"
13 #include "chrome/common/chrome_paths.h" 12 #include "chrome/common/chrome_paths.h"
14 #include "chrome/common/chrome_switches.h" 13 #include "chrome/common/chrome_switches.h"
15 #include "components/crash/app/breakpad_linux.h" 14 #include "components/crash/app/breakpad_linux.h"
16 #include "components/crash/browser/crash_dump_manager_android.h" 15 #include "components/crash/browser/crash_dump_manager_android.h"
17 #include "components/signin/core/browser/signin_manager.h" 16 #include "components/signin/core/browser/signin_manager.h"
18 #include "content/public/browser/android/compositor.h" 17 #include "content/public/browser/android/compositor.h"
19 #include "content/public/common/main_function_params.h" 18 #include "content/public/common/main_function_params.h"
20 #include "net/android/network_change_notifier_factory_android.h" 19 #include "net/android/network_change_notifier_factory_android.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 PathService::Get(chrome::DIR_CRASH_DUMPS, &crash_dump_dir); 54 PathService::Get(chrome::DIR_CRASH_DUMPS, &crash_dump_dir);
56 crash_dump_manager_.reset(new breakpad::CrashDumpManager(crash_dump_dir)); 55 crash_dump_manager_.reset(new breakpad::CrashDumpManager(crash_dump_dir));
57 } 56 }
58 57
59 return ChromeBrowserMainParts::PreCreateThreads(); 58 return ChromeBrowserMainParts::PreCreateThreads();
60 } 59 }
61 60
62 void ChromeBrowserMainPartsAndroid::PostProfileInit() { 61 void ChromeBrowserMainPartsAndroid::PostProfileInit() {
63 Profile* main_profile = profile(); 62 Profile* main_profile = profile();
64 search_counter_.reset(new GoogleSearchCounterAndroid(main_profile)); 63 search_counter_.reset(new GoogleSearchCounterAndroid(main_profile));
65 InitBookmarksExperimentState(main_profile);
66 64
67 ChromeBrowserMainParts::PostProfileInit(); 65 ChromeBrowserMainParts::PostProfileInit();
68 } 66 }
69 67
70 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() { 68 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() {
71 TRACE_EVENT0("startup", 69 TRACE_EVENT0("startup",
72 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization") 70 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization")
73 net::NetworkChangeNotifier::SetFactory( 71 net::NetworkChangeNotifier::SetFactory(
74 new net::NetworkChangeNotifierFactoryAndroid()); 72 new net::NetworkChangeNotifierFactoryAndroid());
75 73
(...skipping 16 matching lines...) Expand all
92 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization:StartUiMsgLoop"); 90 "ChromeBrowserMainPartsAndroid::PreEarlyInitialization:StartUiMsgLoop");
93 base::MessageLoopForUI::current()->Start(); 91 base::MessageLoopForUI::current()->Start();
94 } 92 }
95 93
96 ChromeBrowserMainParts::PreEarlyInitialization(); 94 ChromeBrowserMainParts::PreEarlyInitialization();
97 } 95 }
98 96
99 void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() { 97 void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() {
100 NOTREACHED(); 98 NOTREACHED();
101 } 99 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698