Chromium Code Reviews| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 91 | 91 |
| 92 // Returns the directory where the first created profile is stored, | 92 // Returns the directory where the first created profile is stored, |
| 93 // relative to the user data directory currently in use.. | 93 // relative to the user data directory currently in use.. |
| 94 FilePath GetInitialProfileDir(); | 94 FilePath GetInitialProfileDir(); |
| 95 | 95 |
| 96 // Get the Profile last used (the Profile to which owns the most recently | 96 // Get the Profile last used (the Profile to which owns the most recently |
| 97 // focused window) with this Chrome build. If no signed profile has been | 97 // focused window) with this Chrome build. If no signed profile has been |
| 98 // stored in Local State, hand back the Default profile. | 98 // stored in Local State, hand back the Default profile. |
| 99 Profile* GetLastUsedProfile(const FilePath& user_data_dir); | 99 Profile* GetLastUsedProfile(const FilePath& user_data_dir); |
| 100 | 100 |
| 101 Profile* GetAppListProfile(const FilePath& user_data_dir); | |
|
tapted
2013/01/17 04:23:31
I think there is a case for putting this into app_
benwells
2013/01/17 04:30:29
I like having the getter/setter in the same place.
koz (OOO until 15th September)
2013/01/18 05:37:33
Done.
| |
| 102 | |
| 101 // Same as instance method but provides the default user_data_dir as well. | 103 // Same as instance method but provides the default user_data_dir as well. |
| 102 static Profile* GetLastUsedProfile(); | 104 static Profile* GetLastUsedProfile(); |
| 103 | 105 |
| 104 // Get the Profiles which are currently open, i.e., have open browsers, or | 106 // Get the Profiles which are currently open, i.e., have open browsers, or |
| 105 // were open the last time Chrome was running. The Profiles appear in the | 107 // were open the last time Chrome was running. The Profiles appear in the |
| 106 // order they were opened. The last used profile will be on the list, but its | 108 // order they were opened. The last used profile will be on the list, but its |
| 107 // index on the list will depend on when it was opened (it is not necessarily | 109 // index on the list will depend on when it was opened (it is not necessarily |
| 108 // the last one). | 110 // the last one). |
| 109 std::vector<Profile*> GetLastOpenedProfiles(const FilePath& user_data_dir); | 111 std::vector<Profile*> GetLastOpenedProfiles(const FilePath& user_data_dir); |
| 110 | 112 |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 357 class ProfileManagerWithoutInit : public ProfileManager { | 359 class ProfileManagerWithoutInit : public ProfileManager { |
| 358 public: | 360 public: |
| 359 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir); | 361 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir); |
| 360 | 362 |
| 361 protected: | 363 protected: |
| 362 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} | 364 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} |
| 363 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} | 365 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} |
| 364 }; | 366 }; |
| 365 | 367 |
| 366 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 368 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
| OLD | NEW |