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

Unified Diff: components/policy/core/common/cloud/system_policy_request_context.cc

Issue 1701063002: CookieStore: Remove reference counting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@threadsafe
Patch Set: merge 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: components/policy/core/common/cloud/system_policy_request_context.cc
diff --git a/components/policy/core/common/cloud/system_policy_request_context.cc b/components/policy/core/common/cloud/system_policy_request_context.cc
index 488fd25a13d0a641b7202d4745153c542a50d6d8..c4cb5703149563586ac5fcea15369e7f0d2d0bb5 100644
--- a/components/policy/core/common/cloud/system_policy_request_context.cc
+++ b/components/policy/core/common/cloud/system_policy_request_context.cc
@@ -7,6 +7,7 @@
#include "base/logging.h"
#include "base/single_thread_task_runner.h"
#include "net/cookies/cookie_monster.h"
+#include "net/cookies/cookie_store.h"
#include "net/http/http_network_layer.h"
#include "net/url_request/url_request_context.h"
@@ -56,9 +57,11 @@ SystemPolicyRequestContext::GetURLRequestContext() {
system_context->http_transaction_factory()->GetSession()));
context_->set_http_transaction_factory(http_transaction_factory_.get());
+ cookie_store_.reset(new net::CookieMonster(NULL, NULL));
+
// No cookies, please. We also don't track channel IDs (no
// ChannelIDService).
- context_->set_cookie_store(new net::CookieMonster(NULL, NULL));
+ context_->set_cookie_store(cookie_store_.get());
}
return context_.get();
« no previous file with comments | « components/policy/core/common/cloud/system_policy_request_context.h ('k') | content/browser/net/quota_policy_cookie_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698