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

Unified Diff: chrome/browser/win/jumplist.h

Issue 2779403002: Migrate jumplist update task from FILE thread to base/task_scheduler (Closed)
Patch Set: Fix nits. Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/win/jumplist.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/win/jumplist.h
diff --git a/chrome/browser/win/jumplist.h b/chrome/browser/win/jumplist.h
index 5c1c932cd041fcbdf238e3bd6010b94d5bcee430..d8d96025425cbefe427f7cba65442d8284f97f07 100644
--- a/chrome/browser/win/jumplist.h
+++ b/chrome/browser/win/jumplist.h
@@ -31,7 +31,7 @@
#include "content/public/browser/notification_registrar.h"
namespace base {
-class SequencedTaskRunner;
+class SingleThreadTaskRunner;
}
namespace chrome {
@@ -151,7 +151,7 @@ class JumpList : public sessions::TabRestoreServiceObserver,
// Helper for RunUpdate() that determines its parameters.
void PostRunUpdate();
- // Called on a timer to invoke RunUpdateOnFileThread() after requests storms
+ // Called on a timer to invoke RunUpdateJumpList() after requests storms
// have subsided.
void DeferredRunUpdate();
@@ -185,8 +185,9 @@ class JumpList : public sessions::TabRestoreServiceObserver,
// comes in before it finishes.
base::CancelableTaskTracker::TaskId task_id_;
- // A task runner which runs the background file deletion tasks sequentially.
- scoped_refptr<base::SequencedTaskRunner> sequenced_task_runner_;
+ // A task runner running tasks to update the jumplist in JumpListIcons and to
+ // delete JumpListIconsOld sequentially.
+ scoped_refptr<base::SingleThreadTaskRunner> single_thread_task_runner_;
// For callbacks may be run after destruction.
base::WeakPtrFactory<JumpList> weak_ptr_factory_;
« no previous file with comments | « no previous file | chrome/browser/win/jumplist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698