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

Unified Diff: extensions/browser/api/declarative_webrequest/webrequest_action.h

Issue 1902873002: Convert //extensions/browser/api 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: extensions/browser/api/declarative_webrequest/webrequest_action.h
diff --git a/extensions/browser/api/declarative_webrequest/webrequest_action.h b/extensions/browser/api/declarative_webrequest/webrequest_action.h
index be7ae9d79447f24c0fc76b48094cabf39c5e8c0d..2644af05f4d92dc0f68642c8660381551b495a41 100644
--- a/extensions/browser/api/declarative_webrequest/webrequest_action.h
+++ b/extensions/browser/api/declarative_webrequest/webrequest_action.h
@@ -261,8 +261,9 @@ class WebRequestRedirectByRegExAction : public WebRequestAction {
public:
// The |to_pattern| has to be passed in RE2 syntax with the exception that
// capture groups are referenced in Perl style ($1, $2, ...).
- explicit WebRequestRedirectByRegExAction(scoped_ptr<re2::RE2> from_pattern,
- const std::string& to_pattern);
+ explicit WebRequestRedirectByRegExAction(
+ std::unique_ptr<re2::RE2> from_pattern,
+ const std::string& to_pattern);
// Conversion of capture group styles between Perl style ($1, $2, ...) and
// RE2 (\1, \2, ...).
@@ -279,7 +280,7 @@ class WebRequestRedirectByRegExAction : public WebRequestAction {
private:
~WebRequestRedirectByRegExAction() override;
- scoped_ptr<re2::RE2> from_pattern_;
+ std::unique_ptr<re2::RE2> from_pattern_;
std::string to_pattern_;
DISALLOW_COPY_AND_ASSIGN(WebRequestRedirectByRegExAction);

Powered by Google App Engine
This is Rietveld 408576698