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

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

Issue 2457483002: [MD Settings][Sync Settings] Updates sync status messages (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
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 98ab453f530148bc78d46db7dd3fd229614fc07a..8f9fa55b653a0e1bc84ca58b2d832562c4a18fe4 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.

Powered by Google App Engine
This is Rietveld 408576698