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

Unified Diff: chrome/browser/sync_file_system/drive_backend/callback_helper.h

Issue 515093002: FileAPI/sync file system cleanups for scoped_refptr operator T* cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/sync_file_system/drive_backend/callback_helper.h
diff --git a/chrome/browser/sync_file_system/drive_backend/callback_helper.h b/chrome/browser/sync_file_system/drive_backend/callback_helper.h
index bce337769c3a9aebef330879314c3434a5ccaed7..3fd3f41d5df066e396434d5db34f4f62b4ee76db 100644
--- a/chrome/browser/sync_file_system/drive_backend/callback_helper.h
+++ b/chrome/browser/sync_file_system/drive_backend/callback_helper.h
@@ -42,7 +42,7 @@ RebindForward(T& t) {
template <typename T>
class CallbackHolder {
public:
- CallbackHolder(base::SequencedTaskRunner* task_runner,
+ CallbackHolder(const scoped_refptr<base::SequencedTaskRunner>& task_runner,
const tracked_objects::Location& from_here,
const base::Callback<T>& callback)
: task_runner_(task_runner),
@@ -156,7 +156,7 @@ struct RelayToTaskRunnerHelper<void(A1, A2, A3, A4, A5, A6, A7)> {
template <typename T>
base::Callback<T> RelayCallbackToTaskRunner(
- base::SequencedTaskRunner* task_runner,
+ const scoped_refptr<base::SequencedTaskRunner>& task_runner,
const tracked_objects::Location& from_here,
const base::Callback<T>& callback) {
DCHECK(task_runner->RunsTasksOnCurrentThread());

Powered by Google App Engine
This is Rietveld 408576698