| OLD | NEW |
| 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 } |
| OLD | NEW |