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

Unified Diff: chrome/browser/sync/sync_ui_util.h

Issue 2457483002: [MD Settings][Sync Settings] Updates sync status messages (Closed)
Patch Set: Addressed maxbogue's and dbeam's comments Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/signin/signin_ui_util.cc ('k') | chrome/browser/sync/sync_ui_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/sync_ui_util.h
diff --git a/chrome/browser/sync/sync_ui_util.h b/chrome/browser/sync/sync_ui_util.h
index af08c69dda1b64e3f580465ee25a38dc97901ca4..ca78bd9d560455fa9c4081b41a5b2ae4f5472e9e 100644
--- a/chrome/browser/sync/sync_ui_util.h
+++ b/chrome/browser/sync/sync_ui_util.h
@@ -27,6 +27,14 @@ enum MessageType {
// attention, but not as an error.
};
+// The action associated with the sync status.
+enum ActionType {
+ NO_ACTION, // No action to take.
+ REAUTHENTICATE, // User needs to reauthenticate.
+ UPGRADE_CLIENT, // User needs to upgrade the client.
+ ENTER_PASSPHRASE, // User needs to enter their passphrase.
+};
+
enum StatusLabelStyle {
PLAIN_TEXT, // Label will be plain-text only.
WITH_HTML // Label may contain an HTML-formatted link.
@@ -54,7 +62,8 @@ MessageType GetStatusLabels(Profile* profile,
const SigninManagerBase& signin,
StatusLabelStyle style,
base::string16* status_label,
- base::string16* link_label);
+ base::string16* link_label,
+ ActionType* action_type);
// Same as above but for use specifically on the New Tab Page.
// |status_label| may contain an HTML-formatted link.
« no previous file with comments | « chrome/browser/signin/signin_ui_util.cc ('k') | chrome/browser/sync/sync_ui_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698