Index: chrome/browser/ui/passwords/password_bubble_experiment.cc |
diff --git a/chrome/browser/ui/passwords/password_bubble_experiment.cc b/chrome/browser/ui/passwords/password_bubble_experiment.cc |
index a64bd5778a8f4cbafa1efc1889b7c59c6359d802..4402e801f685778c8e7d0651eb232e80c5c152b3 100644 |
--- a/chrome/browser/ui/passwords/password_bubble_experiment.cc |
+++ b/chrome/browser/ui/passwords/password_bubble_experiment.cc |
@@ -5,8 +5,9 @@ |
#include "chrome/browser/ui/passwords/password_bubble_experiment.h" |
#include "base/metrics/field_trial.h" |
+#include "chrome/browser/password_manager/password_manager_util.h" |
#include "chrome/browser/signin/signin_manager_factory.h" |
-#include "components/signin/core/browser/signin_manager.h" |
+#include "chrome/browser/sync/profile_sync_service_factory.h" |
namespace password_bubble_experiment { |
namespace { |
@@ -23,10 +24,11 @@ void RecordBubbleClosed( |
} |
bool IsEnabledSmartLockBranding(Profile* profile) { |
- SigninManagerBase* signin = SigninManagerFactory::GetForProfile(profile); |
- return (signin && signin->IsAuthenticated() && |
- base::FieldTrialList::FindFullName(kBrandingExperimentName) == |
- kSmartLockBrandingGroupName); |
+ const ProfileSyncService* sync_service = |
+ ProfileSyncServiceFactory::GetForProfile(profile); |
+ return password_manager_util::GetPasswordSyncState(sync_service) && |
+ base::FieldTrialList::FindFullName(kBrandingExperimentName) == |
+ kSmartLockBrandingGroupName; |
} |