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

Unified Diff: chrome/browser/android/password_ui_view_android.cc

Issue 1141413002: Prepare password_bubble_experiment and password_manager_util for componentisation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android 2 Created 5 years, 7 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 | « no previous file | chrome/browser/password_manager/password_manager_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/password_ui_view_android.cc
diff --git a/chrome/browser/android/password_ui_view_android.cc b/chrome/browser/android/password_ui_view_android.cc
index 5ad0c7c0e27fc8f47a11e00459c9001c224a1b2c..7f1609c8fe91c20d5cd5a11b377299fdb921402a 100644
--- a/chrome/browser/android/password_ui_view_android.cc
+++ b/chrome/browser/android/password_ui_view_android.cc
@@ -10,6 +10,8 @@
#include "base/metrics/field_trial.h"
#include "base/prefs/pref_service.h"
#include "chrome/browser/profiles/profile_manager.h"
+#include "chrome/browser/sync/profile_sync_service.h"
+#include "chrome/browser/sync/profile_sync_service_factory.h"
#include "chrome/browser/ui/passwords/password_bubble_experiment.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
@@ -117,8 +119,10 @@ static jboolean ShouldDisplayManageAccountLink(
static jboolean ShouldUseSmartLockBranding(
JNIEnv* env, jclass) {
- return password_bubble_experiment::IsSmartLockBrandingEnabled(
- ProfileManager::GetLastUsedProfile());
+ const ProfileSyncService* sync_service =
+ ProfileSyncServiceFactory::GetForProfile(
+ ProfileManager::GetLastUsedProfile());
+ return password_bubble_experiment::IsSmartLockBrandingEnabled(sync_service);
}
// static
« no previous file with comments | « no previous file | chrome/browser/password_manager/password_manager_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698