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

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

Issue 12952005: Delay bookmarks load while the profile is loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comment. Created 7 years, 8 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
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 // 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 // Schedules the profile at the given path to be deleted on shutdown. 204 // Schedules the profile at the given path to be deleted on shutdown.
205 void ScheduleProfileForDeletion(const base::FilePath& profile_dir, 205 void ScheduleProfileForDeletion(const base::FilePath& profile_dir,
206 chrome::HostDesktopType desktop_type); 206 chrome::HostDesktopType desktop_type);
207 207
208 // Checks if multiple profiles is enabled. 208 // Checks if multiple profiles is enabled.
209 static bool IsMultipleProfilesEnabled(); 209 static bool IsMultipleProfilesEnabled();
210 210
211 // Autoloads profiles if they are running background apps. 211 // Autoloads profiles if they are running background apps.
212 void AutoloadProfiles(); 212 void AutoloadProfiles();
213 213
214 // Register and add testing profile to the ProfileManager. Use ONLY in tests. 214 // Registers and adds testing profile to the ProfileManager.
215 // This allows the creation of Profiles outside of the standard creation path 215 // This allows the creation of Profiles outside of the standard creation path
216 // for testing. If |addToCache|, add to ProfileInfoCache as well. 216 // for testing. If |addToCache|, adds to ProfileInfoCache as well.
217 void RegisterTestingProfile(Profile* profile, bool addToCache); 217 // If |start_deferred_task_runners|, starts the deferred task runners.
218 // Use ONLY in tests.
219 void RegisterTestingProfile(Profile* profile,
220 bool addToCache,
221 bool start_deferred_task_runners);
218 222
219 const base::FilePath& user_data_dir() const { return user_data_dir_; } 223 const base::FilePath& user_data_dir() const { return user_data_dir_; }
220 224
221 // For ChromeOS, determines if the user has logged in to a real profile. 225 // For ChromeOS, determines if the user has logged in to a real profile.
222 bool IsLoggedIn() const { return logged_in_; } 226 bool IsLoggedIn() const { return logged_in_; }
223 227
224 protected: 228 protected:
225 // Does final initial actions. 229 // Does final initial actions.
226 virtual void DoFinalInit(Profile* profile, bool go_off_the_record); 230 virtual void DoFinalInit(Profile* profile, bool go_off_the_record);
227 virtual void DoFinalInitForServices(Profile* profile, bool go_off_the_record); 231 virtual void DoFinalInitForServices(Profile* profile, bool go_off_the_record);
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 class ProfileManagerWithoutInit : public ProfileManager { 375 class ProfileManagerWithoutInit : public ProfileManager {
372 public: 376 public:
373 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); 377 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir);
374 378
375 protected: 379 protected:
376 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} 380 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {}
377 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} 381 virtual void DoFinalInitLogging(Profile*) OVERRIDE {}
378 }; 382 };
379 383
380 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 384 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model_factory.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698