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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 MessageType GetStatusLabelsForNewTabPage( | 61 MessageType GetStatusLabelsForNewTabPage( |
62 Profile* profile, | 62 Profile* profile, |
63 browser_sync::ProfileSyncService* service, | 63 browser_sync::ProfileSyncService* service, |
64 const SigninManagerBase& signin, | 64 const SigninManagerBase& signin, |
65 base::string16* status_label, | 65 base::string16* status_label, |
66 base::string16* link_label); | 66 base::string16* link_label); |
67 | 67 |
68 #if !defined(OS_CHROMEOS) | 68 #if !defined(OS_CHROMEOS) |
69 // Gets various labels for the sync global error based on the sync error state. | 69 // Gets various labels for the sync global error based on the sync error state. |
70 // |menu_item_label|, |bubble_message|, and |bubble_accept_label| must not be | 70 // |menu_item_label|, |bubble_message|, and |bubble_accept_label| must not be |
71 // NULL. Note that we don't use SyncGlobalError on Chrome OS. | 71 // null. Note that we don't use SyncGlobalError on Chrome OS. |
72 void GetStatusLabelsForSyncGlobalError( | 72 void GetStatusLabelsForSyncGlobalError( |
73 const browser_sync::ProfileSyncService* service, | 73 const browser_sync::ProfileSyncService* service, |
74 base::string16* menu_item_label, | 74 base::string16* menu_item_label, |
75 base::string16* bubble_message, | 75 base::string16* bubble_message, |
76 base::string16* bubble_accept_label); | 76 base::string16* bubble_accept_label); |
77 | 77 |
78 // Gets the error message and button label for the sync errors that should be | 78 // Gets the error message and button label for the sync errors that should be |
79 // exposed to the user through the titlebar avatar button. | 79 // exposed to the user through the titlebar avatar button. |
80 AvatarSyncErrorType GetMessagesForAvatarSyncError(Profile* profile, | 80 AvatarSyncErrorType GetMessagesForAvatarSyncError(Profile* profile, |
81 int* content_string_id, | 81 int* content_string_id, |
82 int* button_string_id); | 82 int* button_string_id); |
83 #endif | 83 #endif |
84 | 84 |
85 MessageType GetStatus(Profile* profile, | 85 MessageType GetStatus(Profile* profile, |
86 browser_sync::ProfileSyncService* service, | 86 browser_sync::ProfileSyncService* service, |
87 const SigninManagerBase& signin); | 87 const SigninManagerBase& signin); |
88 | 88 |
89 } // namespace sync_ui_util | 89 } // namespace sync_ui_util |
90 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ | 90 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ |
OLD | NEW |