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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h

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_settings.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h
index 19842415879cdf1eac220bb2d9b609ecf2ac6d6b..a94020c59d024412dfc68ac9890ab1d7b1769594 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h
@@ -7,6 +7,7 @@
#include <stdint.h>
+#include <memory>
#include <string>
#include <vector>
@@ -14,7 +15,6 @@
#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/threading/thread_checker.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_service_observer.h"
@@ -85,7 +85,7 @@ class DataReductionProxySettings : public DataReductionProxyServiceObserver {
const std::string& data_reduction_proxy_enabled_pref_name,
PrefService* prefs,
DataReductionProxyIOData* io_data,
- scoped_ptr<DataReductionProxyService> data_reduction_proxy_service);
+ std::unique_ptr<DataReductionProxyService> data_reduction_proxy_service);
base::WeakPtr<DataReductionProxyCompressionStats> compression_stats();
@@ -312,7 +312,7 @@ class DataReductionProxySettings : public DataReductionProxyServiceObserver {
BooleanPrefMember spdy_proxy_auth_enabled_;
- scoped_ptr<DataReductionProxyService> data_reduction_proxy_service_;
+ std::unique_ptr<DataReductionProxyService> data_reduction_proxy_service_;
// The name of the preference that controls enabling and disabling the Data
// Reduction Proxy.

Powered by Google App Engine
This is Rietveld 408576698