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

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

Issue 2752063002: Remove JumpListIconsOld directory and set upper limit for delete attempts (Closed)
Patch Set: Fix win_clang, update code comments. Created 3 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/win/jumplist.h
diff --git a/chrome/browser/win/jumplist.h b/chrome/browser/win/jumplist.h
index bb5befa04024914c82a71f71a93fc7a966aa7aa0..032165f9deea80f496f08595d4f12d700a5fe1b3 100644
--- a/chrome/browser/win/jumplist.h
+++ b/chrome/browser/win/jumplist.h
@@ -17,6 +17,7 @@
#include "base/memory/weak_ptr.h"
#include "base/synchronization/lock.h"
#include "base/task/cancelable_task_tracker.h"
+#include "base/task_scheduler/post_task.h"
grt (UTC plus 2) 2017/03/23 11:24:57 move to .cc file
chengx 2017/03/23 21:16:11 Done.
#include "base/timer/timer.h"
#include "chrome/browser/prefs/incognito_mode_prefs.h"
#include "chrome/browser/win/jumplist_updater.h"
@@ -181,6 +182,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_;
+
// For callbacks may be run after destruction.
base::WeakPtrFactory<JumpList> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698