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

Unified Diff: chrome/browser/sync_file_system/drive_backend/sync_task_manager.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/sync_task_manager.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/sync_task_manager.cc b/chrome/browser/sync_file_system/drive_backend/sync_task_manager.cc
index b14cfeab53ab96e4539300f39ec92884a3e8172a..6325e799f3ab33ec0c53057a4aaca54e3a4b274f 100644
--- a/chrome/browser/sync_file_system/drive_backend/sync_task_manager.cc
+++ b/chrome/browser/sync_file_system/drive_backend/sync_task_manager.cc
@@ -72,7 +72,7 @@ void SyncTaskManager::Initialize(SyncStatusCode status) {
DCHECK(sequence_checker_.CalledOnValidSequencedThread());
DCHECK(!token_);
NotifyTaskDone(
- SyncTaskToken::CreateForForegroundTask(AsWeakPtr(), task_runner_),
+ SyncTaskToken::CreateForForegroundTask(AsWeakPtr(), task_runner_.get()),
status);
}
@@ -327,11 +327,10 @@ void SyncTaskManager::UpdateBlockingFactorBody(
foreground_task_token->clear_callback();
background_task_token =
- SyncTaskToken::CreateForBackgroundTask(
- AsWeakPtr(),
- task_runner_,
- task_token_seq_++,
- blocking_factor.Pass());
+ SyncTaskToken::CreateForBackgroundTask(AsWeakPtr(),
+ task_runner_.get(),
+ task_token_seq_++,
+ blocking_factor.Pass());
background_task_token->UpdateTask(from_here, callback);
running_background_tasks_.set(background_task_token->token_id(),
running_foreground_task_.Pass());

Powered by Google App Engine
This is Rietveld 408576698