| Index: content/browser/android/media_player_manager_android.cc
|
| diff --git a/content/browser/android/media_player_manager_android.cc b/content/browser/android/media_player_manager_android.cc
|
| index 6277ecdc586b36a7650b08963be00bae7dd99201..3a708cefb84450bcfc6ede8b1c685be6beb8a96f 100644
|
| --- a/content/browser/android/media_player_manager_android.cc
|
| +++ b/content/browser/android/media_player_manager_android.cc
|
| @@ -5,11 +5,12 @@
|
| #include "content/browser/android/media_player_manager_android.h"
|
|
|
| #include "base/bind.h"
|
| -#include "content/browser/android/cookie_getter_impl.h"
|
| +#include "content/browser/android/media_resource_getter_impl.h"
|
| #include "content/common/media/media_player_messages.h"
|
| #include "content/public/browser/browser_context.h"
|
| #include "content/public/browser/render_process_host.h"
|
| #include "content/public/browser/render_view_host.h"
|
| +#include "content/public/browser/storage_partition.h"
|
|
|
| using media::MediaPlayerBridge;
|
|
|
| @@ -106,9 +107,13 @@ void MediaPlayerManagerAndroid::OnInitialize(
|
|
|
| RenderProcessHost* host = render_view_host()->GetProcess();
|
| BrowserContext* context = host->GetBrowserContext();
|
| + StoragePartition* partition = host->GetStoragePartition();
|
| + fileapi::FileSystemContext* file_system_context =
|
| + partition ? partition->GetFileSystemContext() : NULL;
|
| players_.push_back(new MediaPlayerBridge(
|
| player_id, url, first_party_for_cookies,
|
| - new CookieGetterImpl(context, host->GetID(), routing_id()),
|
| + new MediaResourceGetterImpl(context, file_system_context, host->GetID(),
|
| + routing_id()),
|
| context->IsOffTheRecord(), this,
|
| base::Bind(&MediaPlayerManagerAndroid::OnError, base::Unretained(this)),
|
| base::Bind(&MediaPlayerManagerAndroid::OnVideoSizeChanged,
|
|
|