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

Unified Diff: android_webview/browser/net/aw_cookie_store_wrapper.cc

Issue 1852513003: Convert //android_webview to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git is hard Created 4 years, 9 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: android_webview/browser/net/aw_cookie_store_wrapper.cc
diff --git a/android_webview/browser/net/aw_cookie_store_wrapper.cc b/android_webview/browser/net/aw_cookie_store_wrapper.cc
index f7264483abb15d0787bde3c8cfa4867810593bce..2c4531f35df4d85d67d8ea6239420303c919a641 100644
--- a/android_webview/browser/net/aw_cookie_store_wrapper.cc
+++ b/android_webview/browser/net/aw_cookie_store_wrapper.cc
@@ -29,7 +29,7 @@ class SubscriptionWrapper {
public:
SubscriptionWrapper() : weak_factory_(this) {}
- scoped_ptr<net::CookieStore::CookieChangedSubscription> Subscribe(
+ std::unique_ptr<net::CookieStore::CookieChangedSubscription> Subscribe(
const GURL& url,
const std::string& name,
const net::CookieStore::CookieChangedCallback& callback) {
@@ -79,7 +79,7 @@ class SubscriptionWrapper {
base::WeakPtr<SubscriptionWrapper> subscription_wrapper_;
scoped_refptr<base::TaskRunner> client_task_runner_;
- scoped_ptr<net::CookieStore::CookieChangedSubscription> subscription_;
+ std::unique_ptr<net::CookieStore::CookieChangedSubscription> subscription_;
DISALLOW_COPY_AND_ASSIGN(NestedSubscription);
};
@@ -318,7 +318,7 @@ void AwCookieStoreWrapper::SetForceKeepSessionState() {
base::Bind(&SetForceKeepSessionStateOnCookieThread));
}
-scoped_ptr<net::CookieStore::CookieChangedSubscription>
+std::unique_ptr<net::CookieStore::CookieChangedSubscription>
AwCookieStoreWrapper::AddCallbackForCookie(
const GURL& url,
const std::string& name,
« no previous file with comments | « android_webview/browser/net/aw_cookie_store_wrapper.h ('k') | android_webview/browser/net/aw_cookie_store_wrapper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698