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

Unified Diff: chrome/browser/chromeos/drive/file_system/download_operation.cc

Issue 16998003: Update CrOS to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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/chromeos/drive/file_system/download_operation.cc
diff --git a/chrome/browser/chromeos/drive/file_system/download_operation.cc b/chrome/browser/chromeos/drive/file_system/download_operation.cc
index 038b8df3093bf92f004cd03e8409e79cbf0ffdbb..25828592e879d439e87432cb206eaaff2c450180 100644
--- a/chrome/browser/chromeos/drive/file_system/download_operation.cc
+++ b/chrome/browser/chromeos/drive/file_system/download_operation.cc
@@ -322,7 +322,7 @@ void DownloadOperation::EnsureFileDownloadedByResourceId(
ResourceEntry* entry = new ResourceEntry;
base::FilePath* cache_file_path = new base::FilePath;
base::PostTaskAndReplyWithResult(
- blocking_task_runner_,
+ blocking_task_runner_.get(),
FROM_HERE,
base::Bind(&CheckPreConditionForEnsureFileDownloadedByResourceId,
base::Unretained(metadata_),
@@ -353,7 +353,7 @@ void DownloadOperation::EnsureFileDownloadedByPath(
ResourceEntry* entry = new ResourceEntry;
base::FilePath* cache_file_path = new base::FilePath;
base::PostTaskAndReplyWithResult(
- blocking_task_runner_,
+ blocking_task_runner_.get(),
FROM_HERE,
base::Bind(&CheckPreConditionForEnsureFileDownloadedByPath,
base::Unretained(metadata_),
@@ -442,7 +442,7 @@ void DownloadOperation::EnsureFileDownloadedAfterGetResourceEntry(
// the cache space.
DownloadParams* params = new DownloadParams(context, download_url);
base::PostTaskAndReplyWithResult(
- blocking_task_runner_,
+ blocking_task_runner_.get(),
FROM_HERE,
base::Bind(&PrepareForDownloadFile,
base::Unretained(metadata_),
@@ -501,7 +501,7 @@ void DownloadOperation::EnsureFileDownloadedAfterDownloadFile(
ResourceEntry* entry_ptr = entry.get();
base::FilePath* cache_file_path = new base::FilePath;
base::PostTaskAndReplyWithResult(
- blocking_task_runner_,
+ blocking_task_runner_.get(),
FROM_HERE,
base::Bind(&UpdateLocalStateForDownloadFile,
base::Unretained(cache_),

Powered by Google App Engine
This is Rietveld 408576698