| 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.h" | 5 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 } | 176 } |
| 177 } | 177 } |
| 178 | 178 |
| 179 base::string16 GetDisplayUsername(const autofill::PasswordForm& form) { | 179 base::string16 GetDisplayUsername(const autofill::PasswordForm& form) { |
| 180 return form.username_value.empty() | 180 return form.username_value.empty() |
| 181 ? l10n_util::GetStringUTF16(IDS_PASSWORD_MANAGER_EMPTY_LOGIN) | 181 ? l10n_util::GetStringUTF16(IDS_PASSWORD_MANAGER_EMPTY_LOGIN) |
| 182 : form.username_value; | 182 : form.username_value; |
| 183 } | 183 } |
| 184 | 184 |
| 185 bool IsSyncingAutosignSetting(Profile* profile) { | 185 bool IsSyncingAutosignSetting(Profile* profile) { |
| 186 const ProfileSyncService* sync_service = | 186 const browser_sync::ProfileSyncService* sync_service = |
| 187 ProfileSyncServiceFactory::GetForProfile(profile); | 187 ProfileSyncServiceFactory::GetForProfile(profile); |
| 188 return (sync_service && sync_service->IsFirstSetupComplete() && | 188 return (sync_service && sync_service->IsFirstSetupComplete() && |
| 189 sync_service->IsSyncActive() && | 189 sync_service->IsSyncActive() && |
| 190 sync_service->GetActiveDataTypes().Has(syncer::PRIORITY_PREFERENCES)); | 190 sync_service->GetActiveDataTypes().Has(syncer::PRIORITY_PREFERENCES)); |
| 191 } | 191 } |
| OLD | NEW |