Commit 366319aa authored by qinmin@chromium.org's avatar qinmin@chromium.org

pass http only cookies to android MediaPlayer

The default cookie option excludes http only cookies. And thus causing some streams not being able to play.

android bug 66050

Review URL: https://codereview.chromium.org/386723002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282499 0039d316-1c4b-4281-b951-d872f2087c98
parent ed6659cf
...@@ -190,8 +190,9 @@ void CookieGetterTask::CheckPolicyForCookies( ...@@ -190,8 +190,9 @@ void CookieGetterTask::CheckPolicyForCookies(
resource_context_, render_process_id_, render_frame_id_)) { resource_context_, render_process_id_, render_frame_id_)) {
net::CookieStore* cookie_store = net::CookieStore* cookie_store =
context_getter_->GetURLRequestContext()->cookie_store(); context_getter_->GetURLRequestContext()->cookie_store();
cookie_store->GetCookiesWithOptionsAsync( net::CookieOptions options;
url, net::CookieOptions(), callback); options.set_include_httponly();
cookie_store->GetCookiesWithOptionsAsync(url, options, callback);
} else { } else {
callback.Run(std::string()); callback.Run(std::string());
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment