| OLD | NEW |
| 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 // 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 typedef std::vector<ProfilePathAndName> ProfilePathAndNames; | 245 typedef std::vector<ProfilePathAndName> ProfilePathAndNames; |
| 246 ProfilePathAndNames GetSortedProfilesFromDirectoryMap(); | 246 ProfilePathAndNames GetSortedProfilesFromDirectoryMap(); |
| 247 | 247 |
| 248 static bool CompareProfilePathAndName( | 248 static bool CompareProfilePathAndName( |
| 249 const ProfileManager::ProfilePathAndName& pair1, | 249 const ProfileManager::ProfilePathAndName& pair1, |
| 250 const ProfileManager::ProfilePathAndName& pair2); | 250 const ProfileManager::ProfilePathAndName& pair2); |
| 251 | 251 |
| 252 // Adds |profile| to the profile info cache if it hasn't been added yet. | 252 // Adds |profile| to the profile info cache if it hasn't been added yet. |
| 253 void AddProfileToCache(Profile* profile); | 253 void AddProfileToCache(Profile* profile); |
| 254 | 254 |
| 255 #if defined(OS_WIN) |
| 256 // Creates a profile desktop shortcut for |profile| if we are in multi |
| 257 // profile mode and the shortcut has not been created before. |
| 258 void CreateDesktopShortcut(Profile* profile); |
| 259 #endif |
| 260 |
| 255 // Initializes user prefs of |profile|. This includes profile name and | 261 // Initializes user prefs of |profile|. This includes profile name and |
| 256 // avatar values | 262 // avatar values |
| 257 void InitProfileUserPrefs(Profile* profile); | 263 void InitProfileUserPrefs(Profile* profile); |
| 258 | 264 |
| 259 // For ChromeOS, determines if profile should be otr. | 265 // For ChromeOS, determines if profile should be otr. |
| 260 bool ShouldGoOffTheRecord(); | 266 bool ShouldGoOffTheRecord(); |
| 261 | 267 |
| 262 // Get the path of the next profile directory and increment the internal | 268 // Get the path of the next profile directory and increment the internal |
| 263 // count. | 269 // count. |
| 264 // Lack of side effects: | 270 // Lack of side effects: |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 class ProfileManagerWithoutInit : public ProfileManager { | 319 class ProfileManagerWithoutInit : public ProfileManager { |
| 314 public: | 320 public: |
| 315 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir); | 321 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir); |
| 316 | 322 |
| 317 protected: | 323 protected: |
| 318 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} | 324 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} |
| 319 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} | 325 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} |
| 320 }; | 326 }; |
| 321 | 327 |
| 322 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 328 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
| OLD | NEW |