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

Unified Diff: chrome/browser/safe_browsing/download_feedback.cc

Issue 17948002: Update Linux 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/safe_browsing/download_feedback.cc
diff --git a/chrome/browser/safe_browsing/download_feedback.cc b/chrome/browser/safe_browsing/download_feedback.cc
index fef426ad7aeb686670e087af2e9812f79a2ac217..6748d2db833794147ed94853893e242f348ba229 100644
--- a/chrome/browser/safe_browsing/download_feedback.cc
+++ b/chrome/browser/safe_browsing/download_feedback.cc
@@ -108,7 +108,9 @@ DownloadFeedbackImpl::~DownloadFeedbackImpl() {
uploader_.reset();
}
- base::FileUtilProxy::Delete(file_task_runner_, file_path_, false,
+ base::FileUtilProxy::Delete(file_task_runner_.get(),
+ file_path_,
+ false,
base::FileUtilProxy::StatusCallback());
}
@@ -135,15 +137,16 @@ void DownloadFeedbackImpl::Start(const base::Closure& finish_callback) {
std::string metadata_string;
bool ok = report_metadata.SerializeToString(&metadata_string);
DCHECK(ok);
- uploader_.reset(TwoPhaseUploader::Create(
- request_context_getter_,
- file_task_runner_,
- url,
- metadata_string,
- file_path_,
- TwoPhaseUploader::ProgressCallback(),
- base::Bind(&DownloadFeedbackImpl::FinishedUpload, base::Unretained(this),
- finish_callback)));
+ uploader_.reset(
+ TwoPhaseUploader::Create(request_context_getter_.get(),
+ file_task_runner_.get(),
+ url,
+ metadata_string,
+ file_path_,
+ TwoPhaseUploader::ProgressCallback(),
+ base::Bind(&DownloadFeedbackImpl::FinishedUpload,
+ base::Unretained(this),
+ finish_callback)));
uploader_->Start();
}

Powered by Google App Engine
This is Rietveld 408576698