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

Unified Diff: chrome/browser/ui/passwords/password_bubble_experiment.cc

Issue 1139953004: [Password Manager] Fix bug in IsEnabledSmartLockBranding (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: password_manager:: 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4402e801f685778c8e7d0651eb232e80c5c152b3..5bd1b91f33ccfa018672035e5f36b559f4ebcaed 100644
--- a/chrome/browser/ui/passwords/password_bubble_experiment.cc
+++ b/chrome/browser/ui/passwords/password_bubble_experiment.cc
@@ -26,7 +26,8 @@ void RecordBubbleClosed(
bool IsEnabledSmartLockBranding(Profile* profile) {
const ProfileSyncService* sync_service =
ProfileSyncServiceFactory::GetForProfile(profile);
- return password_manager_util::GetPasswordSyncState(sync_service) &&
+ return password_manager_util::GetPasswordSyncState(sync_service) ==
+ password_manager::SYNCING_NORMAL_ENCRYPTION &&
base::FieldTrialList::FindFullName(kBrandingExperimentName) ==
kSmartLockBrandingGroupName;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698