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

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

Issue 1701063002: CookieStore: Remove reference counting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@threadsafe
Patch Set: Small fix Created 4 years, 10 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_url_request_context_getter.cc
diff --git a/android_webview/browser/net/aw_url_request_context_getter.cc b/android_webview/browser/net/aw_url_request_context_getter.cc
index 600ea178ee652d51347692f1416ff49ad7a5f377..d290de132686b1059bb9029fda72e83ed9b3dc11 100644
--- a/android_webview/browser/net/aw_url_request_context_getter.cc
+++ b/android_webview/browser/net/aw_url_request_context_getter.cc
@@ -200,8 +200,6 @@ void AwURLRequestContextGetter::InitializeURLRequestContext() {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
DCHECK(!url_request_context_);
- cookie_store_ = new AwCookieStoreWrapper();
-
net::URLRequestContextBuilder builder;
scoped_ptr<AwNetworkDelegate> aw_network_delegate(new AwNetworkDelegate());
@@ -237,8 +235,9 @@ void AwURLRequestContextGetter::InitializeURLRequestContext() {
builder.set_proxy_service(net::ProxyService::CreateWithoutProxyResolver(
std::move(proxy_config_service_), net_log_.get()));
builder.set_net_log(net_log_.get());
- builder.SetCookieAndChannelIdStores(cookie_store_,
- std::move(channel_id_service));
+ builder.SetCookieAndChannelIdStores(
+ make_scoped_ptr(new AwCookieStoreWrapper()),
+ std::move(channel_id_service));
net::URLRequestContextBuilder::HttpCacheParams cache_params;
cache_params.type =

Powered by Google App Engine
This is Rietveld 408576698