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 |