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

Side by Side Diff: chrome/browser/profiles/profiles_state.h

Issue 117533002: [Mac] Redesign of the avatar menu button (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tabstrip width Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_PROFILES_PROFILES_STATE_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILES_STATE_H_
6 #define CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILES_STATE_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 9
10 class Browser; 10 class Browser;
(...skipping 17 matching lines...) Expand all
28 void RegisterPrefs(PrefRegistrySimple* registry); 28 void RegisterPrefs(PrefRegistrySimple* registry);
29 29
30 // Returns the display name of the active on-the-record profile (or guest). 30 // Returns the display name of the active on-the-record profile (or guest).
31 base::string16 GetActiveProfileDisplayName(Browser* browser); 31 base::string16 GetActiveProfileDisplayName(Browser* browser);
32 32
33 // Update the name of |profile| to |new_profile_name|. This updates the 33 // Update the name of |profile| to |new_profile_name|. This updates the
34 // profile preferences, which triggers an update in the ProfileInfoCache. 34 // profile preferences, which triggers an update in the ProfileInfoCache.
35 void UpdateProfileName(Profile* profile, 35 void UpdateProfileName(Profile* profile,
36 const base::string16& new_profile_name); 36 const base::string16& new_profile_name);
37 37
38 // Returns whether the |browser|'s profile is a non-incognito or guest profile.
39 // The distinction is needed because guest profiles are implemented as
40 // incognito profiles.
41 bool IsRegularOrGuestSession(Browser* browser);
42
38 } // namespace profiles 43 } // namespace profiles
39 44
40 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ 45 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698