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

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

Issue 467853002: Suppress the upgrade tutorial for new profile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: roger's comments addressed Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/signin/signin_ui_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
11 11
12 class GlobalError; 12 class GlobalError;
13 class Profile; 13 class Profile;
14 class SigninManagerBase; 14 class SigninManagerBase;
15 15
16 // Utility functions to gather status information from the various signed in 16 // Utility functions to gather status information from the various signed in
17 // services and construct messages suitable for showing in UI. 17 // services and construct messages suitable for showing in UI.
18 namespace signin_ui_util { 18 namespace signin_ui_util {
19 19
20 // The maximum number of times to show the welcome tutorial for an upgrade user.
21 const int kUpgradeWelcomeTutorialShowMax = 1;
22
20 // If a signed in service is reporting an error, returns the GlobalError 23 // If a signed in service is reporting an error, returns the GlobalError
21 // object associated with that service, or NULL if no errors are reported. 24 // object associated with that service, or NULL if no errors are reported.
22 GlobalError* GetSignedInServiceError(Profile* profile); 25 GlobalError* GetSignedInServiceError(Profile* profile);
23 26
24 // Returns all errors reported by signed in services. 27 // Returns all errors reported by signed in services.
25 std::vector<GlobalError*> GetSignedInServiceErrors(Profile* profile); 28 std::vector<GlobalError*> GetSignedInServiceErrors(Profile* profile);
26 29
27 // Return the label that should be displayed in the signin menu (i.e. 30 // Return the label that should be displayed in the signin menu (i.e.
28 // "Sign in to Chromium", "Signin Error...", etc). 31 // "Sign in to Chromium", "Signin Error...", etc).
29 base::string16 GetSigninMenuLabel(Profile* profile); 32 base::string16 GetSigninMenuLabel(Profile* profile);
30 33
31 void GetStatusLabelsForAuthError(Profile* profile, 34 void GetStatusLabelsForAuthError(Profile* profile,
32 const SigninManagerBase& signin_manager, 35 const SigninManagerBase& signin_manager,
33 base::string16* status_label, 36 base::string16* status_label,
34 base::string16* link_label); 37 base::string16* link_label);
35 38
39 void InitializePrefsForProfile(Profile* profile);
40
36 } // namespace signin_ui_util 41 } // namespace signin_ui_util
37 42
38 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_UI_UTIL_H_ 43 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_UI_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/signin/signin_ui_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698