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

Unified Diff: chrome/test/base/testing_profile.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
« no previous file with comments | « chrome/browser/sync/test/integration/sync_test.cc ('k') | chromecast/browser/url_request_context_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index 74c7d01eb2c390db9ebdf59cc4efd2fdf9d3a0ad..9c64443a7fcb9f811d99effbcbd74321ab3604d5 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -83,6 +83,7 @@
#include "content/public/test/mock_resource_context.h"
#include "content/public/test/test_utils.h"
#include "extensions/common/constants.h"
+#include "net/cookies/cookie_store.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_context_getter.h"
#include "net/url_request/url_request_test_util.h"
@@ -162,9 +163,12 @@ class TestExtensionURLRequestContext : public net::URLRequestContext {
TestExtensionURLRequestContext() {
content::CookieStoreConfig cookie_config;
cookie_config.cookieable_schemes.push_back(extensions::kExtensionScheme);
- set_cookie_store(content::CreateCookieStore(cookie_config));
+ cookie_store_ = content::CreateCookieStore(cookie_config);
+ set_cookie_store(cookie_store_.get());
}
+ scoped_ptr<net::CookieStore> cookie_store_;
+
~TestExtensionURLRequestContext() override { AssertNoURLRequests(); }
};
« no previous file with comments | « chrome/browser/sync/test/integration/sync_test.cc ('k') | chromecast/browser/url_request_context_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698