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

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

Issue 7830019: [Sync UI] Show only one sync status on personal options page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 3 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 | « no previous file | 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 19 matching lines...) Expand all
30 SYNC_ERROR, // A sync error (such as invalid credentials) has occurred. 30 SYNC_ERROR, // A sync error (such as invalid credentials) has occurred.
31 SYNC_PROMO, // A situation has occurred which should be brought to the user's 31 SYNC_PROMO, // A situation has occurred which should be brought to the user's
32 // attention, but not as an error. 32 // attention, but not as an error.
33 }; 33 };
34 34
35 // TODO(akalin): audit the use of ProfileSyncService* service below, 35 // TODO(akalin): audit the use of ProfileSyncService* service below,
36 // and use const ProfileSyncService& service where possible. 36 // and use const ProfileSyncService& service where possible.
37 37
38 // Create status and link labels for the current status labels and link text 38 // Create status and link labels for the current status labels and link text
39 // by querying |service|. 39 // by querying |service|.
40 // |status_label| may contain an HTML-formatted link.
40 MessageType GetStatusLabels(ProfileSyncService* service, 41 MessageType GetStatusLabels(ProfileSyncService* service,
41 string16* status_label, 42 string16* status_label,
42 string16* link_label); 43 string16* link_label);
43 44
44 // 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.
45 MessageType GetStatusLabelsForNewTabPage(ProfileSyncService* service, 47 MessageType GetStatusLabelsForNewTabPage(ProfileSyncService* service,
46 string16* status_label, 48 string16* status_label,
47 string16* link_label); 49 string16* link_label);
48 50
49 MessageType GetStatus(ProfileSyncService* service); 51 MessageType GetStatus(ProfileSyncService* service);
50 52
51 // Determines whether or not the sync error button should be visible. 53 // Determines whether or not the sync error button should be visible.
52 bool ShouldShowSyncErrorButton(ProfileSyncService* service); 54 bool ShouldShowSyncErrorButton(ProfileSyncService* service);
53 55
54 // Returns a string with the synchronization status. 56 // Returns a string with the synchronization status.
(...skipping 15 matching lines...) Expand all
70 DictionaryValue* strings); 72 DictionaryValue* strings);
71 73
72 void AddIntSyncDetail(base::ListValue* details, 74 void AddIntSyncDetail(base::ListValue* details,
73 const std::string& stat_name, 75 const std::string& stat_name,
74 int64 stat_value); 76 int64 stat_value);
75 77
76 void AddStringSyncDetails(ListValue* details, const std::string& stat_name, 78 void AddStringSyncDetails(ListValue* details, const std::string& stat_name,
77 const std::string& stat_value); 79 const std::string& stat_value);
78 } // namespace sync_ui_util 80 } // namespace sync_ui_util
79 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ 81 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/sync_ui_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698