Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: chrome/browser/sync/sync_ui_util.h

Issue 8308005: Suppress bubble view for CONNECTION_FAILED error (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed failure in debug build Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/sync/sync_global_error_unittest.cc ('k') | chrome/browser/sync/sync_ui_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 string16* status_label, 42 string16* status_label,
43 string16* link_label); 43 string16* link_label);
44 44
45 // Same as above but for use specifically on the New Tab Page. 45 // Same as above but for use specifically on the New Tab Page.
46 // |status_label| may contain an HTML-formatted link. 46 // |status_label| may contain an HTML-formatted link.
47 MessageType GetStatusLabelsForNewTabPage(ProfileSyncService* service, 47 MessageType GetStatusLabelsForNewTabPage(ProfileSyncService* service,
48 string16* status_label, 48 string16* status_label,
49 string16* link_label); 49 string16* link_label);
50 50
51 // Gets various labels for the sync global error based on the sync error state. 51 // Gets various labels for the sync global error based on the sync error state.
52 MessageType GetStatusLabelsForSyncGlobalError(ProfileSyncService* service, 52 // |menu_item_label|, |bubble_message|, and |bubble_accept_label| must not be
53 string16* menu_item_label, 53 // NULL.
54 string16* bubble_message, 54 void GetStatusLabelsForSyncGlobalError(ProfileSyncService* service,
55 string16* bubble_accept_label); 55 string16* menu_item_label,
56 string16* bubble_message,
57 string16* bubble_accept_label);
56 58
57 MessageType GetStatus(ProfileSyncService* service); 59 MessageType GetStatus(ProfileSyncService* service);
58 60
59 // Determines whether or not the sync error button should be visible. 61 // Determines whether or not the sync error button should be visible.
60 bool ShouldShowSyncErrorButton(ProfileSyncService* service); 62 bool ShouldShowSyncErrorButton(ProfileSyncService* service);
61 63
62 // Returns a string with the synchronization status. 64 // Returns a string with the synchronization status.
63 string16 GetSyncMenuLabel(ProfileSyncService* service); 65 string16 GetSyncMenuLabel(ProfileSyncService* service);
64 66
65 // Open the appropriate sync dialog for the given profile (which can be 67 // Open the appropriate sync dialog for the given profile (which can be
(...skipping 13 matching lines...) Expand all
79 81
80 void AddIntSyncDetail(base::ListValue* details, 82 void AddIntSyncDetail(base::ListValue* details,
81 const std::string& stat_name, 83 const std::string& stat_name,
82 int64 stat_value); 84 int64 stat_value);
83 85
84 void AddStringSyncDetails(ListValue* details, const std::string& stat_name, 86 void AddStringSyncDetails(ListValue* details, const std::string& stat_name,
85 const std::string& stat_value); 87 const std::string& stat_value);
86 88
87 } // namespace sync_ui_util 89 } // namespace sync_ui_util
88 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ 90 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/sync_global_error_unittest.cc ('k') | chrome/browser/sync/sync_ui_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698