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

Unified Diff: chrome/test/base/testing_profile.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 testing_profile.h 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/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index 82067b18218d75bcdcf2bfadb239684e533be444..45f0dc71dbbde996d948350740ef95a86b5c4b10 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -8,6 +8,7 @@
#include "base/base_paths.h"
#include "base/command_line.h"
+#include "base/deferred_sequenced_task_runner.h"
#include "base/file_util.h"
#include "base/message_loop_proxy.h"
#include "base/path_service.h"
@@ -475,6 +476,15 @@ scoped_refptr<base::SequencedTaskRunner> TestingProfile::GetIOTaskRunner() {
return MessageLoop::current()->message_loop_proxy();
}
+scoped_refptr<base::DeferredSequencedTaskRunner>
+ TestingProfile::GetBookmarksTaskRunner() {
+ if (!bookmarks_task_runner_) {
+ bookmarks_task_runner_ =
+ new base::DeferredSequencedTaskRunner(GetIOTaskRunner());
+ }
+ return bookmarks_task_runner_;
+}
+
TestingPrefServiceSyncable* TestingProfile::GetTestingPrefService() {
if (!prefs_.get())
CreateTestingPrefService();
« chrome/browser/profiles/profile_impl.cc ('K') | « chrome/test/base/testing_profile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698