diff options
| author | 2011-07-22 14:11:31 +0100 | |
|---|---|---|
| committer | 2011-07-22 14:11:31 +0100 | |
| commit | 3192e397afa1bb18e89f77498094dace48f5f86a (patch) | |
| tree | a5e821ffe6aa732a07a64cb9d9280edb21281ab3 | |
| parent | edf0178265efee73da80754d1d76e3d69e1f593f (diff) | |
Fix for bug 5049763 HLS: Cookies set in main playlist request aren't being passed to subsequent HTTP requests
Cookies should be store between requests in memory with this.
Tell me if you want to store the cookies on disk as well.
Change-Id: I9afe5796a3d395afcf54d669c86cf7da432f8d9a
| -rw-r--r-- | media/libstagefright/chromium_http/support.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/media/libstagefright/chromium_http/support.cpp b/media/libstagefright/chromium_http/support.cpp index f4b36688f4cd..eb10ab76b582 100644 --- a/media/libstagefright/chromium_http/support.cpp +++ b/media/libstagefright/chromium_http/support.cpp @@ -25,6 +25,7 @@ #include "android/net/android_network_library_impl.h" #include "base/threading/thread.h" #include "net/base/cert_verifier.h" +#include "net/base/cookie_monster.h" #include "net/base/host_resolver.h" #include "net/base/ssl_config_service.h" #include "net/http/http_auth_handler_factory.h" @@ -140,6 +141,8 @@ SfRequestContext::SfRequestContext() { network_delegate(), net_log(), NULL)); // backend_factory + + set_cookie_store(new net::CookieMonster(NULL, NULL)); } const std::string &SfRequestContext::GetUserAgent(const GURL &url) const { |