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 fd20dba40b6b93711ebb5c5686a0691f5d1f4fef..acfafac7070b597fd750dfd4699baa7979f58fbb 100644 |
--- a/chrome/browser/chrome_browser_main_android.cc |
+++ b/chrome/browser/chrome_browser_main_android.cc |
@@ -7,11 +7,14 @@ |
#include "base/command_line.h" |
#include "base/debug/trace_event.h" |
#include "base/path_service.h" |
+#include "chrome/browser/bookmarks/enhanced_bookmarks_features.h" |
#include "chrome/browser/google/google_search_counter_android.h" |
+#include "chrome/browser/signin/signin_manager_factory.h" |
#include "chrome/common/chrome_paths.h" |
#include "chrome/common/chrome_switches.h" |
#include "components/crash/app/breakpad_linux.h" |
#include "components/crash/browser/crash_dump_manager_android.h" |
+#include "components/signin/core/browser/signin_manager.h" |
#include "content/public/browser/android/compositor.h" |
#include "content/public/common/main_function_params.h" |
#include "net/android/network_change_notifier_factory_android.h" |
@@ -52,7 +55,18 @@ void ChromeBrowserMainPartsAndroid::PreProfileInit() { |
} |
void ChromeBrowserMainPartsAndroid::PostProfileInit() { |
- search_counter_.reset(new GoogleSearchCounterAndroid(profile())); |
+ Profile* main_profile = profile(); |
+ |
+ search_counter_.reset(new GoogleSearchCounterAndroid(main_profile)); |
+ |
+ SigninManagerBase* signin = SigninManagerFactory::GetForProfile(main_profile); |
Yaron
2014/09/05 04:48:43
Please pull this out from here and external_compon
Kibeom Kim (inactive)
2014/09/08 09:26:58
Done. But I had to increase chrome/browser/bookmar
|
+ bool is_signed_in = signin && !signin->IsAuthenticated(); |
+ UpdateBookmarksExperimentState( |
+ main_profile->GetPrefs(), |
+ local_state(), |
+ is_signed_in, |
+ BOOKMARKS_EXPERIMENT_ENABLED_FROM_SYNC_UNKNOWN); |
+ |
ChromeBrowserMainParts::PostProfileInit(); |
} |