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

Unified Diff: components/password_manager/core/browser/password_bubble_experiment.cc

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 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
Index: components/password_manager/core/browser/password_bubble_experiment.cc
diff --git a/components/password_manager/core/browser/password_bubble_experiment.cc b/components/password_manager/core/browser/password_bubble_experiment.cc
index a0e5c88d13b1629d454ce825c91ac5a130808141..4a5b6f5fa7c46b14fb4cc7b17a23441da738cafd 100644
--- a/components/password_manager/core/browser/password_bubble_experiment.cc
+++ b/components/password_manager/core/browser/password_bubble_experiment.cc
@@ -50,13 +50,13 @@ int GetSmartBubbleDismissalThreshold() {
return base::StringToInt(param, &threshold) ? threshold : 3;
}
-bool IsSmartLockUser(const syncer::SyncService* sync_service) {
+bool IsSmartLockUser(const sync_driver::SyncService* sync_service) {
return password_manager_util::GetPasswordSyncState(sync_service) ==
password_manager::SYNCING_NORMAL_ENCRYPTION;
}
SmartLockBranding GetSmartLockBrandingState(
- const syncer::SyncService* sync_service) {
+ const sync_driver::SyncService* sync_service) {
// Query the group first for correct UMA reporting.
std::string group_name =
base::FieldTrialList::FindFullName(kBrandingExperimentName);
@@ -69,17 +69,17 @@ SmartLockBranding GetSmartLockBrandingState(
return SmartLockBranding::NONE;
}
-bool IsSmartLockBrandingEnabled(const syncer::SyncService* sync_service) {
+bool IsSmartLockBrandingEnabled(const sync_driver::SyncService* sync_service) {
return GetSmartLockBrandingState(sync_service) == SmartLockBranding::FULL;
}
bool IsSmartLockBrandingSavePromptEnabled(
- const syncer::SyncService* sync_service) {
+ const sync_driver::SyncService* sync_service) {
return GetSmartLockBrandingState(sync_service) != SmartLockBranding::NONE;
}
bool ShouldShowSavePromptFirstRunExperience(
- const syncer::SyncService* sync_service,
+ const sync_driver::SyncService* sync_service,
PrefService* prefs) {
return false;
}
@@ -106,7 +106,7 @@ void TurnOffAutoSignin(PrefService* prefs) {
bool ShouldShowChromeSignInPasswordPromo(
PrefService* prefs,
- const syncer::SyncService* sync_service) {
+ const sync_driver::SyncService* sync_service) {
// Query the group first for correct UMA reporting.
std::string param = variations::GetVariationParamValue(
kChromeSignInPasswordPromoExperimentName,

Powered by Google App Engine
This is Rietveld 408576698