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

Unified Diff: chrome/browser/sync_file_system/drive_backend/remote_change_processor_on_worker.cc

Issue 506793002: Remove implicit conversions from scoped_refptr to T* in chrome/browser/sync_file_system/ (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/remote_change_processor_on_worker.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/remote_change_processor_on_worker.cc b/chrome/browser/sync_file_system/drive_backend/remote_change_processor_on_worker.cc
index 9024d9395374fa7c6b86e444bdc7bbfe6d5199f9..d84dc637bfab0094aba6fefd78c387da8f5dd72a 100644
--- a/chrome/browser/sync_file_system/drive_backend/remote_change_processor_on_worker.cc
+++ b/chrome/browser/sync_file_system/drive_backend/remote_change_processor_on_worker.cc
@@ -41,9 +41,7 @@ void RemoteChangeProcessorOnWorker::PrepareForProcessRemoteChange(
wrapper_,
url,
RelayCallbackToTaskRunner(
- worker_task_runner_,
- FROM_HERE,
- callback)));
+ worker_task_runner_.get(), FROM_HERE, callback)));
}
void RemoteChangeProcessorOnWorker::ApplyRemoteChange(
@@ -61,9 +59,7 @@ void RemoteChangeProcessorOnWorker::ApplyRemoteChange(
local_path,
url,
RelayCallbackToTaskRunner(
- worker_task_runner_,
- FROM_HERE,
- callback)));
+ worker_task_runner_.get(), FROM_HERE, callback)));
}
void RemoteChangeProcessorOnWorker::FinalizeRemoteSync(
@@ -74,14 +70,13 @@ void RemoteChangeProcessorOnWorker::FinalizeRemoteSync(
ui_task_runner_->PostTask(
FROM_HERE,
- base::Bind(&RemoteChangeProcessorWrapper::FinalizeRemoteSync,
- wrapper_,
- url,
- clear_local_changes,
- RelayCallbackToTaskRunner(
- worker_task_runner_,
- FROM_HERE,
- completion_callback)));
+ base::Bind(
+ &RemoteChangeProcessorWrapper::FinalizeRemoteSync,
+ wrapper_,
+ url,
+ clear_local_changes,
+ RelayCallbackToTaskRunner(
+ worker_task_runner_.get(), FROM_HERE, completion_callback)));
}
void RemoteChangeProcessorOnWorker::RecordFakeLocalChange(
@@ -97,9 +92,7 @@ void RemoteChangeProcessorOnWorker::RecordFakeLocalChange(
url,
change,
RelayCallbackToTaskRunner(
- worker_task_runner_,
- FROM_HERE,
- callback)));
+ worker_task_runner_.get(), FROM_HERE, callback)));
}
void RemoteChangeProcessorOnWorker::DetachFromSequence() {

Powered by Google App Engine
This is Rietveld 408576698