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

Unified Diff: components/rlz/rlz_tracker.h

Issue 2949263003: Remove call to GetBlockingPool in RLZ (Closed)
Patch Set: rebased Created 3 years, 5 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: components/rlz/rlz_tracker.h
diff --git a/components/rlz/rlz_tracker.h b/components/rlz/rlz_tracker.h
index bbf8db5f7a9699acc8fbba4e8242f823d80fd8d8..0caf3bcd1282c44afb773750c3812ec3dba1f63b 100644
--- a/components/rlz/rlz_tracker.h
+++ b/components/rlz/rlz_tracker.h
@@ -10,13 +10,17 @@
#include <string>
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
#include "base/memory/singleton.h"
#include "base/strings/string16.h"
-#include "base/threading/sequenced_worker_pool.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "rlz/lib/rlz_lib.h"
+namespace base {
+class SequencedTaskRunner;
+}
+
namespace rlz {
class RLZTrackerDelegate;
@@ -205,10 +209,6 @@ class RLZTracker {
bool is_google_homepage_;
bool is_google_in_startpages_;
- // Unique sequence token so that tasks posted by RLZTracker are executed
- // sequentially in the blocking pool.
- base::SequencedWorkerPool::SequenceToken worker_pool_token_;
-
// Keeps track if the RLZ tracker has already performed its delayed
// initialization.
bool already_ran_;
@@ -231,6 +231,9 @@ class RLZTracker {
// Minimum delay before sending financial ping after initialization.
base::TimeDelta min_init_delay_;
+ // Runner for RLZ background tasks.
+ scoped_refptr<base::SequencedTaskRunner> task_runner_;
gab 2017/07/27 18:29:37 More specific name (background_task_runner_? or im
Roger Tawa OOO till Jul 10th 2017/07/28 18:43:06 Done.
+
DISALLOW_COPY_AND_ASSIGN(RLZTracker);
};

Powered by Google App Engine
This is Rietveld 408576698