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

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

Issue 2388163002: [Sync] Move //components/sync to the syncer namespace, take 2. (Closed)
Patch Set: Rebase. 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 4a5b6f5fa7c46b14fb4cc7b17a23441da738cafd..a0e5c88d13b1629d454ce825c91ac5a130808141 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 sync_driver::SyncService* sync_service) {
+bool IsSmartLockUser(const syncer::SyncService* sync_service) {
return password_manager_util::GetPasswordSyncState(sync_service) ==
password_manager::SYNCING_NORMAL_ENCRYPTION;
}
SmartLockBranding GetSmartLockBrandingState(
- const sync_driver::SyncService* sync_service) {
+ const syncer::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 sync_driver::SyncService* sync_service) {
+bool IsSmartLockBrandingEnabled(const syncer::SyncService* sync_service) {
return GetSmartLockBrandingState(sync_service) == SmartLockBranding::FULL;
}
bool IsSmartLockBrandingSavePromptEnabled(
- const sync_driver::SyncService* sync_service) {
+ const syncer::SyncService* sync_service) {
return GetSmartLockBrandingState(sync_service) != SmartLockBranding::NONE;
}
bool ShouldShowSavePromptFirstRunExperience(
- const sync_driver::SyncService* sync_service,
+ const syncer::SyncService* sync_service,
PrefService* prefs) {
return false;
}
@@ -106,7 +106,7 @@ void TurnOffAutoSignin(PrefService* prefs) {
bool ShouldShowChromeSignInPasswordPromo(
PrefService* prefs,
- const sync_driver::SyncService* sync_service) {
+ const syncer::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