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

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

Issue 585653002: After locking a profile and showing the User Manager, make Guest the active profile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: don't do anything if you're already a guest profile Created 6 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
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/profiles/profile_info_cache.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PROFILE_INFO_CACHE_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 void SetGAIAGivenNameOfProfileAtIndex(size_t index, 115 void SetGAIAGivenNameOfProfileAtIndex(size_t index,
116 const base::string16& name); 116 const base::string16& name);
117 void SetGAIAPictureOfProfileAtIndex(size_t index, const gfx::Image* image); 117 void SetGAIAPictureOfProfileAtIndex(size_t index, const gfx::Image* image);
118 void SetIsUsingGAIAPictureOfProfileAtIndex(size_t index, bool value); 118 void SetIsUsingGAIAPictureOfProfileAtIndex(size_t index, bool value);
119 void SetProfileSigninRequiredAtIndex(size_t index, bool value); 119 void SetProfileSigninRequiredAtIndex(size_t index, bool value);
120 void SetProfileIsEphemeralAtIndex(size_t index, bool value); 120 void SetProfileIsEphemeralAtIndex(size_t index, bool value);
121 void SetProfileIsUsingDefaultNameAtIndex(size_t index, bool value); 121 void SetProfileIsUsingDefaultNameAtIndex(size_t index, bool value);
122 void SetProfileIsUsingDefaultAvatarAtIndex(size_t index, bool value); 122 void SetProfileIsUsingDefaultAvatarAtIndex(size_t index, bool value);
123 123
124 // Determines whether |name| is one of the default assigned names. 124 // Determines whether |name| is one of the default assigned names.
125 bool IsDefaultProfileName(const base::string16& name); 125 bool IsDefaultProfileName(const base::string16& name) const;
126 126
127 // Returns unique name that can be assigned to a newly created profile. 127 // Returns unique name that can be assigned to a newly created profile.
128 base::string16 ChooseNameForNewProfile(size_t icon_index) const; 128 base::string16 ChooseNameForNewProfile(size_t icon_index) const;
129 129
130 // Returns an avatar icon index that can be assigned to a newly created 130 // Returns an avatar icon index that can be assigned to a newly created
131 // profile. Note that the icon may not be unique since there are a limited 131 // profile. Note that the icon may not be unique since there are a limited
132 // set of default icons. 132 // set of default icons.
133 size_t ChooseAvatarIconIndexForNewProfile() const; 133 size_t ChooseAvatarIconIndexForNewProfile() const;
134 134
135 const base::FilePath& GetUserDataDir() const; 135 const base::FilePath& GetUserDataDir() const;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 // This prevents a picture from being downloaded multiple times. The 229 // This prevents a picture from being downloaded multiple times. The
230 // ProfileAvatarDownloader instances are deleted when the download completes 230 // ProfileAvatarDownloader instances are deleted when the download completes
231 // or when the ProfileInfoCache is destroyed. 231 // or when the ProfileInfoCache is destroyed.
232 mutable std::map<std::string, ProfileAvatarDownloader*> 232 mutable std::map<std::string, ProfileAvatarDownloader*>
233 avatar_images_downloads_in_progress_; 233 avatar_images_downloads_in_progress_;
234 234
235 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCache); 235 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCache);
236 }; 236 };
237 237
238 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_ 238 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_
OLDNEW
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/profiles/profile_info_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698