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

Unified Diff: chrome/browser/chrome_browser_main_android.cc

Issue 517713002: [Android] Add enhanced bookmark opt-in flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« chrome/browser/about_flags.cc ('K') | « chrome/browser/chrome_browser_main.h ('k') | no next file » | 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 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();
}
« chrome/browser/about_flags.cc ('K') | « chrome/browser/chrome_browser_main.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698