summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqinmin <qinmin@chromium.org>2014-09-11 20:46:33 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-12 03:49:31 +0000
commit36ab8ba1abae1ab1d2059924969bf671797fa9d4 (patch)
treebabc679ac0e1ce938a79dbc9ac5b075f71f472bb
parentec49a5539503cfa546375b89ede8335a07f6d20d (diff)
downloadchromium_src-36ab8ba1abae1ab1d2059924969bf671797fa9d4.zip
chromium_src-36ab8ba1abae1ab1d2059924969bf671797fa9d4.tar.gz
chromium_src-36ab8ba1abae1ab1d2059924969bf671797fa9d4.tar.bz2
Revert 282243 "Fix an issue that android Download Manager doesn'..."
> Fix an issue that android Download Manager doesn't handle OMA files correctly > > For OMA files, it looks like that android download manager cannot correctly download it. > Some of the files cannot be downloaded, and some of the files downloaded has different binary content as the ones downloaed on chrome desktop. > Bypass android download manager for OMA mime types. > > BUG=382698 > > Review URL: https://codereview.chromium.org/331143010 TBR=tedchoc@chromium.org BUG=382698 Review URL: https://codereview.chromium.org/567733002 Cr-Commit-Position: refs/heads/master@{#294538}
-rw-r--r--chrome/browser/android/intercept_download_resource_throttle.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/chrome/browser/android/intercept_download_resource_throttle.cc b/chrome/browser/android/intercept_download_resource_throttle.cc
index 721ed3d..87dbdab 100644
--- a/chrome/browser/android/intercept_download_resource_throttle.cc
+++ b/chrome/browser/android/intercept_download_resource_throttle.cc
@@ -13,9 +13,6 @@
namespace chrome {
-static const char kOmaDrmContentMime[] = "application/vnd.oma.drm.content";
-static const char kOmaDrmMessageMime[] = "application/vnd.oma.drm.message";
-
InterceptDownloadResourceThrottle::InterceptDownloadResourceThrottle(
net::URLRequest* request,
int render_process_id,
@@ -70,13 +67,6 @@ void InterceptDownloadResourceThrottle::ProcessDownloadRequest() {
#endif
}
- // For OMA DRM downloads, Android Download Manager doesn't handle them
- // correctly. Use chromium network stack instead. http://crbug.com/382698.
- std::string mime;
- request_->GetMimeType(&mime);
- if (!mime.compare(kOmaDrmContentMime) || !mime.compare(kOmaDrmMessageMime))
- return;
-
content::DownloadControllerAndroid::Get()->CreateGETDownload(
render_process_id_, render_view_id_, request_id_);
controller()->Cancel();