Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2757)

Unified Diff: chrome/browser/android/intercept_download_resource_throttle.cc

Issue 567733002: Revert 282243 "Fix an issue that android Download Manager doesn'..." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/intercept_download_resource_throttle.cc
diff --git a/chrome/browser/android/intercept_download_resource_throttle.cc b/chrome/browser/android/intercept_download_resource_throttle.cc
index 721ed3d9b6859ccbb397e059c8aff33ed4e9fb1d..87dbdab4b1cf2cb94532f9bc8bf97ec67c947e55 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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698