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

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

Issue 8391034: Remove sync error button from bookmark bar (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 9 years, 1 month 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/app/generated_resources.grd ('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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // |menu_item_label|, |bubble_message|, and |bubble_accept_label| must not be 52 // |menu_item_label|, |bubble_message|, and |bubble_accept_label| must not be
53 // NULL. 53 // NULL.
54 void GetStatusLabelsForSyncGlobalError(ProfileSyncService* service, 54 void GetStatusLabelsForSyncGlobalError(ProfileSyncService* service,
55 string16* menu_item_label, 55 string16* menu_item_label,
56 string16* bubble_message, 56 string16* bubble_message,
57 string16* bubble_accept_label); 57 string16* bubble_accept_label);
58 58
59 MessageType GetStatus(ProfileSyncService* service); 59 MessageType GetStatus(ProfileSyncService* service);
60 60
61 // Determines whether or not the sync error button should be visible.
62 bool ShouldShowSyncErrorButton(ProfileSyncService* service);
63
64 // Returns a string with the synchronization status. 61 // Returns a string with the synchronization status.
65 string16 GetSyncMenuLabel(ProfileSyncService* service); 62 string16 GetSyncMenuLabel(ProfileSyncService* service);
66 63
67 // Open the appropriate sync dialog for the given profile (which can be 64 // Open the appropriate sync dialog for the given profile (which can be
68 // incognito). |browser| is the browser window that should be used if the UI 65 // incognito). |browser| is the browser window that should be used if the UI
69 // is in-window (i.e., WebUI). |code| should be one of the START_FROM_* codes. 66 // is in-window (i.e., WebUI). |code| should be one of the START_FROM_* codes.
70 void OpenSyncMyBookmarksDialog(Profile* profile, 67 void OpenSyncMyBookmarksDialog(Profile* profile,
71 Browser* browser, 68 Browser* browser,
72 ProfileSyncService::SyncEventCodes code); 69 ProfileSyncService::SyncEventCodes code);
73 70
74 void AddBoolSyncDetail(base::ListValue* details, 71 void AddBoolSyncDetail(base::ListValue* details,
75 const std::string& stat_name, 72 const std::string& stat_name,
76 bool stat_value); 73 bool stat_value);
77 74
78 // |service| can be NULL. 75 // |service| can be NULL.
79 void ConstructAboutInformation(ProfileSyncService* service, 76 void ConstructAboutInformation(ProfileSyncService* service,
80 DictionaryValue* strings); 77 DictionaryValue* strings);
81 78
82 void AddIntSyncDetail(base::ListValue* details, 79 void AddIntSyncDetail(base::ListValue* details,
83 const std::string& stat_name, 80 const std::string& stat_name,
84 int64 stat_value); 81 int64 stat_value);
85 82
86 void AddStringSyncDetails(ListValue* details, const std::string& stat_name, 83 void AddStringSyncDetails(ListValue* details, const std::string& stat_name,
87 const std::string& stat_value); 84 const std::string& stat_value);
88 85
89 } // namespace sync_ui_util 86 } // namespace sync_ui_util
90 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ 87 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/sync/sync_ui_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698