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

Unified Diff: components/web_resource/resource_request_allowed_notifier_test_util.h

Issue 1917673002: Convert //components/[u-z]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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/web_resource/resource_request_allowed_notifier_test_util.h
diff --git a/components/web_resource/resource_request_allowed_notifier_test_util.h b/components/web_resource/resource_request_allowed_notifier_test_util.h
index e1c3d1e23c9d0769bb6e957e9d11bbe859a58728..a9fadf1a7d92429c14be81913ecef1961e08848b 100644
--- a/components/web_resource/resource_request_allowed_notifier_test_util.h
+++ b/components/web_resource/resource_request_allowed_notifier_test_util.h
@@ -5,8 +5,9 @@
#ifndef COMPONENTS_WEB_RESOURCE_RESOURCE_REQUEST_ALLOWED_NOTIFIER_TEST_UTIL_H_
#define COMPONENTS_WEB_RESOURCE_RESOURCE_REQUEST_ALLOWED_NOTIFIER_TEST_UTIL_H_
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "components/web_resource/resource_request_allowed_notifier.h"
class PrefService;
@@ -30,7 +31,7 @@ class TestRequestAllowedNotifier : public ResourceRequestAllowedNotifier {
// A version of |Init()| that accepts a custom EulaAcceptedNotifier.
void InitWithEulaAcceptNotifier(
Observer* observer,
- scoped_ptr<EulaAcceptedNotifier> eula_notifier);
+ std::unique_ptr<EulaAcceptedNotifier> eula_notifier);
// Makes ResourceRequestsAllowed return |allowed| when it is called.
void SetRequestsAllowedOverride(bool allowed);
@@ -44,7 +45,7 @@ class TestRequestAllowedNotifier : public ResourceRequestAllowedNotifier {
EulaAcceptedNotifier* CreateEulaNotifier() override;
private:
- scoped_ptr<EulaAcceptedNotifier> test_eula_notifier_;
+ std::unique_ptr<EulaAcceptedNotifier> test_eula_notifier_;
bool override_requests_allowed_;
bool requests_allowed_;

Powered by Google App Engine
This is Rietveld 408576698