Chromium Code Reviews| 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..0679f2ec71b9b51d8b95e3b0101b93869a610718 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 |
| @@ -4,9 +4,9 @@ |
| #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate_test_utils.h" |
| +#include <memory> |
|
megjablon
2016/04/12 21:55:36
Can be eliminated since it's in .h
dcheng
2016/04/12 22:38:34
Done.
|
| #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 +27,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); |