summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorerikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-09 17:01:54 +0000
committererikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-09 17:01:54 +0000
commitb9d1624fd67dacd86cf95a2279b42388defbf336 (patch)
treeeab1f050d1237d0920e8420dadb9f8727b09430d /content
parent711aa65991f407a4873f76695636967a9cb34067 (diff)
downloadchromium_src-b9d1624fd67dacd86cf95a2279b42388defbf336.zip
chromium_src-b9d1624fd67dacd86cf95a2279b42388defbf336.tar.gz
chromium_src-b9d1624fd67dacd86cf95a2279b42388defbf336.tar.bz2
Re-land http://codereview.chromium.org/7831056/ and http://codereview.chromium.org/7833042/ .
Finalize a CL originally by departed intern ycxiao@ that detaches the loading of cookies from the IO thread. They are now loaded on the DB thread. Cookie operations received in the meantime are queued and executed, on the IO thread, in the order they were received, when loading completes. A few straggler clients are updated to use the asynchronous CookieStore/CookieMonster API as part of this CL, as the synchronous API is removed. This entire CL has been previously reviewed by the appropriate owners, however an error was made during the submit. BUG=68657 TEST=net_unittests / DeferredCookieTaskTest.* and CookieMonsterTest.* Review URL: http://codereview.chromium.org/7860039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100415 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/browser/renderer_host/render_message_filter.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/content/browser/renderer_host/render_message_filter.cc b/content/browser/renderer_host/render_message_filter.cc
index 32180e3..c857f58 100644
--- a/content/browser/renderer_host/render_message_filter.cc
+++ b/content/browser/renderer_host/render_message_filter.cc
@@ -893,9 +893,10 @@ void RenderMessageFilter::CheckPolicyForCookies(
url, first_party_for_cookies, cookie_list, resource_context_,
render_process_id_, reply_msg->routing_id())) {
// Gets the cookies from cookie store if allowed.
- context->cookie_store()->GetCookiesAsync(
- url, base::Bind(&RenderMessageFilter::SendGetCookiesResponse,
- this, reply_msg));
+ context->cookie_store()->GetCookiesWithOptionsAsync(
+ url, net::CookieOptions(),
+ base::Bind(&RenderMessageFilter::SendGetCookiesResponse,
+ this, reply_msg));
} else {
SendGetCookiesResponse(reply_msg, std::string());
}