| 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 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 ProfileInfo* GetProfileInfoByPath(const base::FilePath& path) const; | 279 ProfileInfo* GetProfileInfoByPath(const base::FilePath& path) const; |
| 280 | 280 |
| 281 // Returns a registered profile. In contrast to GetProfileByPath(), this will | 281 // Returns a registered profile. In contrast to GetProfileByPath(), this will |
| 282 // also return a profile that is not fully initialized yet, so this method | 282 // also return a profile that is not fully initialized yet, so this method |
| 283 // should be used carefully. | 283 // should be used carefully. |
| 284 Profile* GetProfileByPathInternal(const base::FilePath& path) const; | 284 Profile* GetProfileByPathInternal(const base::FilePath& path) const; |
| 285 | 285 |
| 286 // Adds |profile| to the profile info cache if it hasn't been added yet. | 286 // Adds |profile| to the profile info cache if it hasn't been added yet. |
| 287 void AddProfileToCache(Profile* profile); | 287 void AddProfileToCache(Profile* profile); |
| 288 | 288 |
| 289 // Apply settings for (desktop) Guest User profile. | 289 // Apply settings for profiles created by the system rather than users: The |
| 290 void SetGuestProfilePrefs(Profile* profile); | 290 // (desktop) Guest User profile and (desktop) System Profile. |
| 291 void SetNonPersonalProfilePrefs(Profile* profile); |
| 291 | 292 |
| 292 // For ChromeOS, determines if profile should be otr. | 293 // For ChromeOS, determines if profile should be otr. |
| 293 bool ShouldGoOffTheRecord(Profile* profile); | 294 bool ShouldGoOffTheRecord(Profile* profile); |
| 294 | 295 |
| 295 void RunCallbacks(const std::vector<CreateCallback>& callbacks, | 296 void RunCallbacks(const std::vector<CreateCallback>& callbacks, |
| 296 Profile* profile, | 297 Profile* profile, |
| 297 Profile::CreateStatus status); | 298 Profile::CreateStatus status); |
| 298 | 299 |
| 299 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 300 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
| 300 // Updates the last active user of the current session. | 301 // Updates the last active user of the current session. |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 class ProfileManagerWithoutInit : public ProfileManager { | 375 class ProfileManagerWithoutInit : public ProfileManager { |
| 375 public: | 376 public: |
| 376 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); | 377 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); |
| 377 | 378 |
| 378 protected: | 379 protected: |
| 379 void DoFinalInitForServices(Profile*, bool) override {} | 380 void DoFinalInitForServices(Profile*, bool) override {} |
| 380 void DoFinalInitLogging(Profile*) override {} | 381 void DoFinalInitLogging(Profile*) override {} |
| 381 }; | 382 }; |
| 382 | 383 |
| 383 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 384 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
| OLD | NEW |