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

Unified Diff: chrome/browser/extensions/api/cookies/cookies_api.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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: chrome/browser/extensions/api/cookies/cookies_api.h
diff --git a/chrome/browser/extensions/api/cookies/cookies_api.h b/chrome/browser/extensions/api/cookies/cookies_api.h
index 1fe93dae6221952ee7edc035c1cf9fe1ca225489..c7764d54d5d6e5bed59c6936c30772f1d9bd7657 100644
--- a/chrome/browser/extensions/api/cookies/cookies_api.h
+++ b/chrome/browser/extensions/api/cookies/cookies_api.h
@@ -8,12 +8,12 @@
#ifndef CHROME_BROWSER_EXTENSIONS_API_COOKIES_COOKIES_API_H_
#define CHROME_BROWSER_EXTENSIONS_API_COOKIES_COOKIES_API_H_
+#include <memory>
#include <string>
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "chrome/browser/extensions/chrome_extension_function.h"
#include "chrome/browser/net/chrome_cookie_notification_details.h"
#include "chrome/common/extensions/api/cookies.h"
@@ -51,7 +51,7 @@ class CookiesEventRouter : public content::NotificationObserver {
void DispatchEvent(content::BrowserContext* context,
events::HistogramValue histogram_value,
const std::string& event_name,
- scoped_ptr<base::ListValue> event_args,
+ std::unique_ptr<base::ListValue> event_args,
GURL& cookie_domain);
// Used for tracking registrations to CookieMonster notifications.
@@ -82,7 +82,7 @@ class CookiesGetFunction : public ChromeAsyncExtensionFunction {
GURL url_;
scoped_refptr<net::URLRequestContextGetter> store_browser_context_;
- scoped_ptr<api::cookies::Get::Params> parsed_args_;
+ std::unique_ptr<api::cookies::Get::Params> parsed_args_;
};
// Implements the cookies.getAll() extension function.
@@ -105,7 +105,7 @@ class CookiesGetAllFunction : public ChromeAsyncExtensionFunction {
GURL url_;
scoped_refptr<net::URLRequestContextGetter> store_browser_context_;
- scoped_ptr<api::cookies::GetAll::Params> parsed_args_;
+ std::unique_ptr<api::cookies::GetAll::Params> parsed_args_;
};
// Implements the cookies.set() extension function.
@@ -128,7 +128,7 @@ class CookiesSetFunction : public ChromeAsyncExtensionFunction {
GURL url_;
bool success_;
scoped_refptr<net::URLRequestContextGetter> store_browser_context_;
- scoped_ptr<api::cookies::Set::Params> parsed_args_;
+ std::unique_ptr<api::cookies::Set::Params> parsed_args_;
};
// Implements the cookies.remove() extension function.
@@ -151,7 +151,7 @@ class CookiesRemoveFunction : public ChromeAsyncExtensionFunction {
GURL url_;
scoped_refptr<net::URLRequestContextGetter> store_browser_context_;
- scoped_ptr<api::cookies::Remove::Params> parsed_args_;
+ std::unique_ptr<api::cookies::Remove::Params> parsed_args_;
};
// Implements the cookies.getAllCookieStores() extension function.
@@ -193,7 +193,7 @@ class CookiesAPI : public BrowserContextKeyedAPI, public EventRouter::Observer {
static const bool kServiceIsNULLWhileTesting = true;
// Created lazily upon OnListenerAdded.
- scoped_ptr<CookiesEventRouter> cookies_event_router_;
+ std::unique_ptr<CookiesEventRouter> cookies_event_router_;
DISALLOW_COPY_AND_ASSIGN(CookiesAPI);
};

Powered by Google App Engine
This is Rietveld 408576698