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

Unified Diff: components/data_reduction_proxy/core/browser/db_data_owner.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/db_data_owner.cc
diff --git a/components/data_reduction_proxy/core/browser/db_data_owner.cc b/components/data_reduction_proxy/core/browser/db_data_owner.cc
index 8e29c20aeee7730e096538a7286861d12177b168..4a338ca05ababc55a42d99c68251410d7067aa64 100644
--- a/components/data_reduction_proxy/core/browser/db_data_owner.cc
+++ b/components/data_reduction_proxy/core/browser/db_data_owner.cc
@@ -14,7 +14,7 @@
namespace data_reduction_proxy {
-DBDataOwner::DBDataOwner(scoped_ptr<DataStore> store)
+DBDataOwner::DBDataOwner(std::unique_ptr<DataStore> store)
: store_(std::move(store)),
data_usage_(new DataUsageStore(store_.get())),
weak_factory_(this) {
@@ -45,7 +45,7 @@ void DBDataOwner::LoadCurrentDataUsageBucket(DataUsageBucket* bucket) {
}
void DBDataOwner::StoreCurrentDataUsageBucket(
- scoped_ptr<DataUsageBucket> current) {
+ std::unique_ptr<DataUsageBucket> current) {
DCHECK(sequence_checker_.CalledOnValidSequencedThread());
data_usage_->StoreCurrentDataUsageBucket(*current.get());

Powered by Google App Engine
This is Rietveld 408576698