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

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

Issue 660873002: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_worker.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/sync_worker.cc b/chrome/browser/sync_file_system/drive_backend/sync_worker.cc
index dd86b9a5e43b81dccd1ffe0188b8851f72734de6..9ae8560cf196424a53f8b3f868dc439b9bc18409 100644
--- a/chrome/browser/sync_file_system/drive_backend/sync_worker.cc
+++ b/chrome/browser/sync_file_system/drive_backend/sync_worker.cc
@@ -95,10 +95,7 @@ void SyncWorker::RegisterOrigin(
}
task_manager_->ScheduleSyncTask(
- FROM_HERE,
- task.PassAs<SyncTask>(),
- SyncTaskManager::PRIORITY_HIGH,
- callback);
+ FROM_HERE, task.Pass(), SyncTaskManager::PRIORITY_HIGH, callback);
}
void SyncWorker::EnableOrigin(

Powered by Google App Engine
This is Rietveld 408576698