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

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

Issue 128513002: Refactor the code that creates the list of secondary accounts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 <vector>
8 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
9 10
10 class Browser; 11 class Browser;
11 class PrefRegistrySimple; 12 class PrefRegistrySimple;
12 class Profile; 13 class Profile;
13 namespace base { class FilePath; } 14 namespace base { class FilePath; }
14 15
15 namespace profiles { 16 namespace profiles {
16 17
17 // Checks if multiple profiles is enabled. 18 // Checks if multiple profiles is enabled.
(...skipping 10 matching lines...) Expand all
28 void RegisterPrefs(PrefRegistrySimple* registry); 29 void RegisterPrefs(PrefRegistrySimple* registry);
29 30
30 // Returns the display name of the active on-the-record profile (or guest). 31 // Returns the display name of the active on-the-record profile (or guest).
31 base::string16 GetActiveProfileDisplayName(Browser* browser); 32 base::string16 GetActiveProfileDisplayName(Browser* browser);
32 33
33 // Update the name of |profile| to |new_profile_name|. This updates the 34 // Update the name of |profile| to |new_profile_name|. This updates the
34 // profile preferences, which triggers an update in the ProfileInfoCache. 35 // profile preferences, which triggers an update in the ProfileInfoCache.
35 void UpdateProfileName(Profile* profile, 36 void UpdateProfileName(Profile* profile,
36 const base::string16& new_profile_name); 37 const base::string16& new_profile_name);
37 38
39 // Returns the list of secondary accounts for a specific |profile|, which is
40 // all the accounts associated with the profile that are not equal to
41 // the |primary_account|.
42 std::vector<std::string> GetSecondaryAccountsForProfile(
43 Profile* profile, const std::string& primary_account);
44
38 } // namespace profiles 45 } // namespace profiles
39 46
40 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ 47 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profiles_state.cc » ('j') | chrome/browser/profiles/profiles_state.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698