Revert r196089 "Add default values for Latin script font prefs."
[chromium-blink-merge.git] / chrome / browser / signin / signin_ui_util.h
blob821fd0ecb898d1cab672f6187885a0f21a9ce2ee
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_SIGNIN_SIGNIN_UI_UTIL_H_
6 #define CHROME_BROWSER_SIGNIN_SIGNIN_UI_UTIL_H_
8 #include "base/string16.h"
10 class GlobalError;
11 class Profile;
12 class SigninManagerBase;
14 // Utility functions to gather status information from the various signed in
15 // services and construct messages suitable for showing in UI.
16 namespace signin_ui_util {
18 // If a signed in service is reporting an error, returns the GlobalError
19 // object associated with that service, or NULL if no errors are reported.
20 GlobalError* GetSignedInServiceError(Profile* profile);
22 // Return the label that should be displayed in the signin menu (i.e.
23 // "Sign in to Chromium", "Signin Error...", etc).
24 string16 GetSigninMenuLabel(Profile* profile);
26 void GetStatusLabelsForAuthError(const SigninManagerBase& signin_manager,
27 string16* status_label,
28 string16* link_label);
30 } // namespace signin_ui_util
32 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_UI_UTIL_H_