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 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_ |
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_ |
7 | 7 |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 | 9 |
10 namespace autofill { | 10 namespace autofill { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 void GetBrandedTextAndLinkRange( | 85 void GetBrandedTextAndLinkRange( |
86 bool is_smartlock_branding_enabled, | 86 bool is_smartlock_branding_enabled, |
87 int smartlock_string_id, | 87 int smartlock_string_id, |
88 int default_string_id, | 88 int default_string_id, |
89 base::string16* out_string, | 89 base::string16* out_string, |
90 gfx::Range* link_range); | 90 gfx::Range* link_range); |
91 | 91 |
92 // Returns an username in the form that should be shown in the bubble. | 92 // Returns an username in the form that should be shown in the bubble. |
93 base::string16 GetDisplayUsername(const autofill::PasswordForm& form); | 93 base::string16 GetDisplayUsername(const autofill::PasswordForm& form); |
94 | 94 |
95 // Check if |profile| syncing settings. The view appearance might depend on it. | 95 // Check if |profile| syncing the Auto sign-in settings (by checking that user |
96 bool IsSyncingSettings(Profile* profile); | 96 // syncs the PRIORITY_PREFERENCE). The view appearance might depend on it. |
| 97 bool IsSyncingAutosignSetting(Profile* profile); |
97 | 98 |
98 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_ | 99 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_ |
OLD | NEW |