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

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

Issue 23551005: Revert 219709 "Remove the Extensions URLRequestContext." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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: trunk/src/android_webview/browser/net/aw_url_request_context_getter.cc
===================================================================
--- trunk/src/android_webview/browser/net/aw_url_request_context_getter.cc (revision 219785)
+++ trunk/src/android_webview/browser/net/aw_url_request_context_getter.cc (working copy)
@@ -16,8 +16,8 @@
#include "base/threading/sequenced_worker_pool.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/content_browser_client.h"
+#include "content/public/browser/cookie_store_factory.h"
#include "content/public/common/content_client.h"
-#include "content/public/common/content_constants.h"
#include "content/public/common/url_constants.h"
#include "net/base/cache_type.h"
#include "net/cookies/cookie_store.h"
@@ -121,8 +121,9 @@
} // namespace
AwURLRequestContextGetter::AwURLRequestContextGetter(
- const base::FilePath& partition_path)
+ const base::FilePath& partition_path, net::CookieStore* cookie_store)
: partition_path_(partition_path),
+ cookie_store_(cookie_store),
proxy_config_service_(net::ProxyService::CreateSystemProxyConfigService(
GetNetworkTaskRunner(),
NULL /* Ignored on Android */)) {
@@ -168,6 +169,7 @@
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::CACHE)));
main_http_factory_.reset(main_cache);
url_request_context_->set_http_transaction_factory(main_cache);
+ url_request_context_->set_cookie_store(cookie_store_);
job_factory_ = CreateJobFactory(&protocol_handlers_);
url_request_context_->set_job_factory(job_factory_.get());

Powered by Google App Engine
This is Rietveld 408576698