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

Unified Diff: chrome/browser/profiles/profile_impl.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 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/browser/profiles/profile_impl.h
diff --git a/chrome/browser/profiles/profile_impl.h b/chrome/browser/profiles/profile_impl.h
index f0b00790032f292fa3f3e5d42e4d9126702f09af..8d9d786e5889f2b425f7ee8a3bdf0c737b81461f 100644
--- a/chrome/browser/profiles/profile_impl.h
+++ b/chrome/browser/profiles/profile_impl.h
@@ -36,6 +36,7 @@ class Preferences;
namespace base {
class SequencedTaskRunner;
+class DeferredSequencedTaskRunner;
}
namespace content {
@@ -83,6 +84,8 @@ class ProfileImpl : public Profile {
// Profile implementation:
virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() OVERRIDE;
+ virtual scoped_refptr<base::DeferredSequencedTaskRunner>
+ GetBookmarksTaskRunner() OVERRIDE;
virtual std::string GetProfileName() OVERRIDE;
virtual bool IsOffTheRecord() const OVERRIDE;
virtual Profile* GetOffTheRecordProfile() OVERRIDE;
@@ -231,6 +234,8 @@ class ProfileImpl : public Profile {
// prefs.
ExitType last_session_exit_type_;
+ scoped_refptr<base::DeferredSequencedTaskRunner> bookmarks_task_runner_;
+
#if defined(ENABLE_SESSION_SERVICE)
base::OneShotTimer<ProfileImpl> create_session_service_timer_;
#endif

Powered by Google App Engine
This is Rietveld 408576698