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

Unified Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate_test_utils.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/common/data_reduction_proxy_event_storage_delegate_test_utils.cc
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate_test_utils.cc b/components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate_test_utils.cc
index 5b836d3d3f8941a9e2e5632ee8b8c0babffd9b21..0f202aaa6337ff8c4539e8e80c3d88edc728fd26 100644
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate_test_utils.cc
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate_test_utils.cc
@@ -6,7 +6,6 @@
#include <utility>
-#include "base/memory/scoped_ptr.h"
#include "base/values.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate.h"
@@ -27,27 +26,27 @@ void TestDataReductionProxyEventStorageDelegate::SetStorageDelegate(
}
void TestDataReductionProxyEventStorageDelegate::AddEvent(
- scoped_ptr<base::Value> event) {
+ std::unique_ptr<base::Value> event) {
if (delegate_)
delegate_->AddEvent(std::move(event));
}
void TestDataReductionProxyEventStorageDelegate::AddEnabledEvent(
- scoped_ptr<base::Value> event,
+ std::unique_ptr<base::Value> event,
bool enabled) {
if (delegate_)
delegate_->AddEnabledEvent(std::move(event), enabled);
}
void TestDataReductionProxyEventStorageDelegate::AddAndSetLastBypassEvent(
- scoped_ptr<base::Value> event,
+ std::unique_ptr<base::Value> event,
int64_t expiration_ticks) {
if (delegate_)
delegate_->AddAndSetLastBypassEvent(std::move(event), expiration_ticks);
}
void TestDataReductionProxyEventStorageDelegate::
- AddEventAndSecureProxyCheckState(scoped_ptr<base::Value> event,
+ AddEventAndSecureProxyCheckState(std::unique_ptr<base::Value> event,
SecureProxyCheckState state) {
if (delegate_)
delegate_->AddEventAndSecureProxyCheckState(std::move(event), state);

Powered by Google App Engine
This is Rietveld 408576698