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

Unified Diff: chrome/browser/signin/signin_ui_util.h

Issue 12077030: Allow signin to continue even if sync is disabled by policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows sync integration test failure Created 7 years, 11 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
« no previous file with comments | « chrome/browser/signin/signin_tracker_unittest.cc ('k') | chrome/browser/signin/signin_ui_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/signin_ui_util.h
diff --git a/chrome/browser/signin/signin_ui_util.h b/chrome/browser/signin/signin_ui_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..11fc60cc73390e16568676d0d148b216d2f8f89a
--- /dev/null
+++ b/chrome/browser/signin/signin_ui_util.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SIGNIN_SIGNIN_UI_UTIL_H_
+#define CHROME_BROWSER_SIGNIN_SIGNIN_UI_UTIL_H_
+
+#include "base/string16.h"
+
+class GlobalError;
+class Profile;
+class SigninManager;
+
+// Utility functions to gather status information from the various signed in
+// services and construct messages suitable for showing in UI.
+namespace signin_ui_util {
+
+// If a signed in service is reporting an error, returns the GlobalError
+// object associated with that service, or NULL if no errors are reported.
+GlobalError* GetSignedInServiceError(Profile* profile);
+
+// Return the label that should be displayed in the signin menu (i.e.
+// "Sign in to Chromium", "Signin Error...", etc).
+string16 GetSigninMenuLabel(Profile* profile);
+
+void GetStatusLabelsForAuthError(const SigninManager& signin_manager,
+ string16* status_label,
+ string16* link_label);
+
+} // namespace signin_ui_util
+
+#endif // CHROME_BROWSER_SIGNIN_SIGNIN_UI_UTIL_H_
« no previous file with comments | « chrome/browser/signin/signin_tracker_unittest.cc ('k') | chrome/browser/signin/signin_ui_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698