Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SYNC_SYNC_UI_UTIL_H_ | 5 #ifndef CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ |
| 6 #define CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ | 6 #define CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ |
| 7 | 7 |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 49 // Create status and link labels for the current status labels and link text | 49 // Create status and link labels for the current status labels and link text |
| 50 // by querying |service|. | 50 // by querying |service|. |
| 51 // |style| sets the link properties, see |StatusLabelStyle|. | 51 // |style| sets the link properties, see |StatusLabelStyle|. |
| 52 MessageType GetStatusLabels(Profile* profile, | 52 MessageType GetStatusLabels(Profile* profile, |
| 53 browser_sync::ProfileSyncService* service, | 53 browser_sync::ProfileSyncService* service, |
| 54 const SigninManagerBase& signin, | 54 const SigninManagerBase& signin, |
| 55 StatusLabelStyle style, | 55 StatusLabelStyle style, |
| 56 base::string16* status_label, | 56 base::string16* status_label, |
| 57 base::string16* link_label); | 57 base::string16* link_label); |
| 58 | 58 |
| 59 // Returns the username of the authenticated user or an empty string if there is | |
| 60 // no authenticated user. | |
| 61 base::string16 GetAuthenticatedUsername(const SigninManagerBase* signin); | |
|
maxbogue
2016/10/05 15:56:23
This function no longer has anything to do with sy
Moe
2016/10/05 18:52:45
Done.
| |
| 62 | |
| 59 // Same as above but for use specifically on the New Tab Page. | 63 // Same as above but for use specifically on the New Tab Page. |
| 60 // |status_label| may contain an HTML-formatted link. | 64 // |status_label| may contain an HTML-formatted link. |
| 61 MessageType GetStatusLabelsForNewTabPage( | 65 MessageType GetStatusLabelsForNewTabPage( |
| 62 Profile* profile, | 66 Profile* profile, |
| 63 browser_sync::ProfileSyncService* service, | 67 browser_sync::ProfileSyncService* service, |
| 64 const SigninManagerBase& signin, | 68 const SigninManagerBase& signin, |
| 65 base::string16* status_label, | 69 base::string16* status_label, |
| 66 base::string16* link_label); | 70 base::string16* link_label); |
| 67 | 71 |
| 68 #if !defined(OS_CHROMEOS) | 72 #if !defined(OS_CHROMEOS) |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 81 int* content_string_id, | 85 int* content_string_id, |
| 82 int* button_string_id); | 86 int* button_string_id); |
| 83 #endif | 87 #endif |
| 84 | 88 |
| 85 MessageType GetStatus(Profile* profile, | 89 MessageType GetStatus(Profile* profile, |
| 86 browser_sync::ProfileSyncService* service, | 90 browser_sync::ProfileSyncService* service, |
| 87 const SigninManagerBase& signin); | 91 const SigninManagerBase& signin); |
| 88 | 92 |
| 89 } // namespace sync_ui_util | 93 } // namespace sync_ui_util |
| 90 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ | 94 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ |
| OLD | NEW |