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

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

Issue 16290004: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/two_phase_uploader.cc
diff --git a/chrome/browser/safe_browsing/two_phase_uploader.cc b/chrome/browser/safe_browsing/two_phase_uploader.cc
index 93720ead770e3b3d5f4ae60cd183e1d05753b36e..c5558d17f06d525527f86ddffb0a178c89c1481c 100644
--- a/chrome/browser/safe_browsing/two_phase_uploader.cc
+++ b/chrome/browser/safe_browsing/two_phase_uploader.cc
@@ -162,7 +162,7 @@ void TwoPhaseUploaderImpl::UploadMetadata() {
state_ = UPLOAD_METADATA;
url_fetcher_.reset(net::URLFetcher::Create(base_url_, net::URLFetcher::POST,
this));
- url_fetcher_->SetRequestContext(url_request_context_getter_);
+ url_fetcher_->SetRequestContext(url_request_context_getter_.get());
url_fetcher_->SetExtraRequestHeaders(kStartHeader);
url_fetcher_->SetUploadData(kUploadContentType, metadata_);
url_fetcher_->Start();
@@ -174,12 +174,9 @@ void TwoPhaseUploaderImpl::UploadFile() {
url_fetcher_.reset(net::URLFetcher::Create(upload_url_, net::URLFetcher::PUT,
this));
- url_fetcher_->SetRequestContext(url_request_context_getter_);
- url_fetcher_->SetUploadFilePath(kUploadContentType,
- file_path_,
- 0,
- kuint64max,
- file_task_runner_);
+ url_fetcher_->SetRequestContext(url_request_context_getter_.get());
+ url_fetcher_->SetUploadFilePath(
+ kUploadContentType, file_path_, 0, kuint64max, file_task_runner_);
url_fetcher_->Start();
}
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_test.cc ('k') | chrome/browser/safe_browsing/two_phase_uploader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698