| Index: chrome/browser/android/download/intercept_download_resource_throttle.cc
|
| diff --git a/chrome/browser/android/download/intercept_download_resource_throttle.cc b/chrome/browser/android/download/intercept_download_resource_throttle.cc
|
| index 1321f2e877b80d8034d91ef2b3d28ddeebb0eba4..c9542fff8af09d5dce616cb100687e588b56d10f 100644
|
| --- a/chrome/browser/android/download/intercept_download_resource_throttle.cc
|
| +++ b/chrome/browser/android/download/intercept_download_resource_throttle.cc
|
| @@ -12,6 +12,11 @@
|
|
|
| namespace {
|
| static const char kOMADrmMessageMimeType[] = "application/vnd.oma.drm.message";
|
| +static const char kOMADrmContentMimeType[] = "application/vnd.oma.drm.content";
|
| +static const char kOMADrmRightsMimeType1[] =
|
| + "application/vnd.oma.drm.rights+xml";
|
| +static const char kOMADrmRightsMimeType2[] =
|
| + "application/vnd.oma.drm.rights+wbxml";
|
| }
|
|
|
| InterceptDownloadResourceThrottle::InterceptDownloadResourceThrottle(
|
| @@ -42,8 +47,12 @@ void InterceptDownloadResourceThrottle::WillProcessResponse(bool* defer) {
|
|
|
| std::string mime_type;
|
| request_->response_headers()->GetMimeType(&mime_type);
|
| - if (!base::EqualsCaseInsensitiveASCII(mime_type, kOMADrmMessageMimeType))
|
| + if (!base::EqualsCaseInsensitiveASCII(mime_type, kOMADrmMessageMimeType) &&
|
| + !base::EqualsCaseInsensitiveASCII(mime_type, kOMADrmContentMimeType) &&
|
| + !base::EqualsCaseInsensitiveASCII(mime_type, kOMADrmRightsMimeType1) &&
|
| + !base::EqualsCaseInsensitiveASCII(mime_type, kOMADrmRightsMimeType2)) {
|
| return;
|
| + }
|
|
|
| net::CookieStore* cookie_store = request_->context()->cookie_store();
|
| if (cookie_store) {
|
|
|