OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This class keeps track of the currently-active profiles in the runtime. | 5 // This class keeps track of the currently-active profiles in the runtime. |
6 | 6 |
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
8 #define CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 8 #define CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 typedef std::vector<ProfilePathAndName> ProfilePathAndNames; | 257 typedef std::vector<ProfilePathAndName> ProfilePathAndNames; |
258 ProfilePathAndNames GetSortedProfilesFromDirectoryMap(); | 258 ProfilePathAndNames GetSortedProfilesFromDirectoryMap(); |
259 | 259 |
260 static bool CompareProfilePathAndName( | 260 static bool CompareProfilePathAndName( |
261 const ProfileManager::ProfilePathAndName& pair1, | 261 const ProfileManager::ProfilePathAndName& pair1, |
262 const ProfileManager::ProfilePathAndName& pair2); | 262 const ProfileManager::ProfilePathAndName& pair2); |
263 | 263 |
264 // Adds |profile| to the profile info cache if it hasn't been added yet. | 264 // Adds |profile| to the profile info cache if it hasn't been added yet. |
265 void AddProfileToCache(Profile* profile); | 265 void AddProfileToCache(Profile* profile); |
266 | 266 |
267 // Initializes user prefs of |profile|. This includes profile name and | |
268 // avatar values | |
269 void InitProfileUserPrefs(Profile* profile); | |
270 | |
271 // For ChromeOS, determines if profile should be otr. | 267 // For ChromeOS, determines if profile should be otr. |
272 bool ShouldGoOffTheRecord(); | 268 bool ShouldGoOffTheRecord(); |
273 | 269 |
274 // Get the path of the next profile directory and increment the internal | 270 // Get the path of the next profile directory and increment the internal |
275 // count. | 271 // count. |
276 // Lack of side effects: | 272 // Lack of side effects: |
277 // This function doesn't actually create the directory or touch the file | 273 // This function doesn't actually create the directory or touch the file |
278 // system. | 274 // system. |
279 FilePath GenerateNextProfileDirectoryPath(); | 275 FilePath GenerateNextProfileDirectoryPath(); |
280 | 276 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 class ProfileManagerWithoutInit : public ProfileManager { | 312 class ProfileManagerWithoutInit : public ProfileManager { |
317 public: | 313 public: |
318 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir); | 314 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir); |
319 | 315 |
320 protected: | 316 protected: |
321 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} | 317 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} |
322 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} | 318 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} |
323 }; | 319 }; |
324 | 320 |
325 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 321 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
OLD | NEW |