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

Side by Side Diff: chrome/browser/signin/signin_ui_util.h

Issue 2393643004: [MD Settings][People] Updates positions of username and sync status message (Closed)
Patch Set: rebase 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 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_SIGNIN_SIGNIN_UI_UTIL_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_SIGNIN_UI_UTIL_H_
6 #define CHROME_BROWSER_SIGNIN_SIGNIN_UI_UTIL_H_ 6 #define CHROME_BROWSER_SIGNIN_SIGNIN_UI_UTIL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 11 matching lines...) Expand all
22 22
23 // Returns the label that should be displayed in the signin menu (i.e. 23 // Returns the label that should be displayed in the signin menu (i.e.
24 // "Sign in to Chromium", "Signin Error...", etc). 24 // "Sign in to Chromium", "Signin Error...", etc).
25 base::string16 GetSigninMenuLabel(Profile* profile); 25 base::string16 GetSigninMenuLabel(Profile* profile);
26 26
27 void GetStatusLabelsForAuthError(Profile* profile, 27 void GetStatusLabelsForAuthError(Profile* profile,
28 const SigninManagerBase& signin_manager, 28 const SigninManagerBase& signin_manager,
29 base::string16* status_label, 29 base::string16* status_label,
30 base::string16* link_label); 30 base::string16* link_label);
31 31
32 // Returns the username of the authenticated user or an empty string if there is
33 // no authenticated user.
34 base::string16 GetAuthenticatedUsername(const SigninManagerBase* signin);
35
32 // Initializes signin-related preferences. 36 // Initializes signin-related preferences.
33 void InitializePrefsForProfile(Profile* profile); 37 void InitializePrefsForProfile(Profile* profile);
34 38
35 // Shows a learn more page for signin errors. 39 // Shows a learn more page for signin errors.
36 void ShowSigninErrorLearnMorePage(Profile* profile); 40 void ShowSigninErrorLearnMorePage(Profile* profile);
37 41
38 // Returns the display email string for the given account. If the profile 42 // Returns the display email string for the given account. If the profile
39 // has not been migrated to use gaia ids, then its possible for the display 43 // has not been migrated to use gaia ids, then its possible for the display
40 // to not ne known yet. In this case, use |account_id|, which is assumed to 44 // to not ne known yet. In this case, use |account_id|, which is assumed to
41 // be an email address. 45 // be an email address.
42 std::string GetDisplayEmail(Profile* profile, const std::string& account_id); 46 std::string GetDisplayEmail(Profile* profile, const std::string& account_id);
43 47
44 } // namespace signin_ui_util 48 } // namespace signin_ui_util
45 49
46 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_UI_UTIL_H_ 50 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_UI_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/people_page/sync_browser_proxy.js ('k') | chrome/browser/signin/signin_ui_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698