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/string16.h" | 8 #include "base/string16.h" |
9 | 9 |
10 class ProfileSyncService; | 10 class ProfileSyncService; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 // |menu_item_label|, |bubble_message|, and |bubble_accept_label| must not be | 50 // |menu_item_label|, |bubble_message|, and |bubble_accept_label| must not be |
51 // NULL. | 51 // NULL. |
52 void GetStatusLabelsForSyncGlobalError(ProfileSyncService* service, | 52 void GetStatusLabelsForSyncGlobalError(ProfileSyncService* service, |
53 const SigninManager& signin, | 53 const SigninManager& signin, |
54 string16* menu_item_label, | 54 string16* menu_item_label, |
55 string16* bubble_message, | 55 string16* bubble_message, |
56 string16* bubble_accept_label); | 56 string16* bubble_accept_label); |
57 | 57 |
58 MessageType GetStatus(ProfileSyncService* service, const SigninManager& signin); | 58 MessageType GetStatus(ProfileSyncService* service, const SigninManager& signin); |
59 | 59 |
60 // Returns a string with the synchronization status. | |
61 string16 GetSyncMenuLabel(ProfileSyncService* service, | |
62 const SigninManager& signin); | |
63 | |
64 } // namespace sync_ui_util | 60 } // namespace sync_ui_util |
65 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ | 61 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ |
OLD | NEW |