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

Side by Side Diff: chrome/browser/ui/passwords/manage_passwords_view_utils_desktop.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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/passwords/manage_passwords_view_utils_desktop.h" 5 #include "chrome/browser/ui/passwords/manage_passwords_view_utils_desktop.h"
6 6
7 #include "chrome/grit/generated_resources.h" 7 #include "chrome/grit/generated_resources.h"
8 #include "components/password_manager/core/browser/password_bubble_experiment.h" 8 #include "components/password_manager/core/browser/password_bubble_experiment.h"
9 #include "components/password_manager/core/browser/password_manager_settings_mig ration_experiment.h" 9 #include "components/password_manager/core/browser/password_manager_settings_mig ration_experiment.h"
10 10
11 int GetPasswordManagerSettingsStringId( 11 int GetPasswordManagerSettingsStringId(
12 const syncer::SyncService* sync_service) { 12 const sync_driver::SyncService* sync_service) {
13 int smart_lock_users_ids = IDS_OPTIONS_PASSWORD_MANAGER_SMART_LOCK_ENABLE; 13 int smart_lock_users_ids = IDS_OPTIONS_PASSWORD_MANAGER_SMART_LOCK_ENABLE;
14 int non_smart_lock_users_ids = IDS_OPTIONS_PASSWORD_MANAGER_ENABLE; 14 int non_smart_lock_users_ids = IDS_OPTIONS_PASSWORD_MANAGER_ENABLE;
15 15
16 if (password_bubble_experiment::IsSmartLockBrandingEnabled(sync_service)) 16 if (password_bubble_experiment::IsSmartLockBrandingEnabled(sync_service))
17 return smart_lock_users_ids; 17 return smart_lock_users_ids;
18 if (password_bubble_experiment::IsSmartLockUser(sync_service) && 18 if (password_bubble_experiment::IsSmartLockUser(sync_service) &&
19 password_manager::IsSettingsMigrationActive()) { 19 password_manager::IsSettingsMigrationActive()) {
20 return smart_lock_users_ids; 20 return smart_lock_users_ids;
21 } 21 }
22 return non_smart_lock_users_ids; 22 return non_smart_lock_users_ids;
23 } 23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698