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

Unified Diff: chrome/browser/profiles/profile_manager.cc

Issue 12952005: Delay bookmarks load while the profile is loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits. Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profiles/profile_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index f95ab4f82ce480b203cc926220fbabb9f329ff37..8574faf71700495b9f82696d36f1369d48c32bc1 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -8,6 +8,7 @@
#include "base/bind.h"
#include "base/command_line.h"
+#include "base/deferred_sequenced_task_runner.h"
#include "base/file_util.h"
#include "base/files/file_path.h"
#include "base/metrics/histogram.h"
@@ -761,6 +762,9 @@ void ProfileManager::DoFinalInitForServices(Profile* profile,
// initializing the managed flag if necessary).
ManagedUserServiceFactory::GetForProfile(profile)->Init();
#endif
+ // Start loading the bookmarks after the profile is loaded.
+ BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile);
+ model->GetBookmarkTaskRunner()->Start();
Miranda Callahan 2013/03/27 13:31:46 It seems wrong to expose this inner lazy construct
msarda 2013/03/27 14:16:48 Done.
}
void ProfileManager::DoFinalInitLogging(Profile* profile) {

Powered by Google App Engine
This is Rietveld 408576698