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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc

Issue 1873263002: Convert //components/data_reduction_proxy from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address feedback Created 4 years, 8 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: components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc
index 1c222b0f53ce1f0762f393e4b5eb194e210681a8..07baacde60cc9e76c29e93ed0346243dc420e424 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc
@@ -142,7 +142,7 @@ const net::BackoffEntry::Policy& GetBackoffPolicy() {
}
DataReductionProxyConfigServiceClient::DataReductionProxyConfigServiceClient(
- scoped_ptr<DataReductionProxyParams> params,
+ std::unique_ptr<DataReductionProxyParams> params,
const net::BackoffEntry::Policy& backoff_policy,
DataReductionProxyRequestOptions* request_options,
DataReductionProxyMutableConfigValues* config_values,
@@ -368,7 +368,7 @@ void DataReductionProxyConfigServiceClient::RetrieveRemoteConfig() {
if (!session_key.empty())
request.set_session_key(request_options_->GetSecureSession());
request.SerializeToString(&serialized_request);
- scoped_ptr<net::URLFetcher> fetcher =
+ std::unique_ptr<net::URLFetcher> fetcher =
GetURLFetcherForConfig(config_service_url_, serialized_request);
if (!fetcher.get()) {
HandleResponse(std::string(),
@@ -390,12 +390,12 @@ void DataReductionProxyConfigServiceClient::InvalidateConfig() {
config_->ReloadConfig();
}
-scoped_ptr<net::URLFetcher>
+std::unique_ptr<net::URLFetcher>
DataReductionProxyConfigServiceClient::GetURLFetcherForConfig(
const GURL& secure_proxy_check_url,
const std::string& request_body) {
DCHECK(thread_checker_.CalledOnValidThread());
- scoped_ptr<net::URLFetcher> fetcher(net::URLFetcher::Create(
+ std::unique_ptr<net::URLFetcher> fetcher(net::URLFetcher::Create(
secure_proxy_check_url, net::URLFetcher::POST, this));
fetcher->SetLoadFlags(net::LOAD_BYPASS_PROXY);
fetcher->SetUploadData("application/x-protobuf", request_body);

Powered by Google App Engine
This is Rietveld 408576698