| Index: chrome/browser/android/offline_pages/downloads/resource_throttle.cc
|
| diff --git a/chrome/browser/android/offline_pages/downloads/resource_throttle.cc b/chrome/browser/android/offline_pages/downloads/resource_throttle.cc
|
| index a09b33c4abf26c70f13b2834710a8b659e385148..7b07611527e65c76d69eeef3b8fcc75f20f5d0dd 100644
|
| --- a/chrome/browser/android/offline_pages/downloads/resource_throttle.cc
|
| +++ b/chrome/browser/android/offline_pages/downloads/resource_throttle.cc
|
| @@ -10,16 +10,8 @@
|
| #include "content/public/browser/browser_thread.h"
|
| #include "content/public/browser/resource_request_info.h"
|
| #include "content/public/browser/web_contents.h"
|
| -#include "net/base/mime_util.h"
|
|
|
| namespace {
|
| -// Mime type of download resource that should trigger handoff to OfflinePages
|
| -// backend for full page load and snapshot.
|
| -bool CanDownloadAsOfflinePage(const std::string& contents_mime_type) {
|
| - return net::MatchesMimeType(contents_mime_type, "text/html") ||
|
| - net::MatchesMimeType(contents_mime_type, "application/xhtml+xml");
|
| -}
|
| -
|
| void WillStartOfflineRequestOnUIThread(
|
| const GURL& url,
|
| const content::ResourceRequestInfo::WebContentsGetter& contents_getter) {
|
| @@ -49,7 +41,7 @@ void ResourceThrottle::WillProcessResponse(bool* defer) {
|
| DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
|
| std::string mime_type;
|
| request_->GetMimeType(&mime_type);
|
| - if (CanDownloadAsOfflinePage(mime_type)) {
|
| + if (offline_pages::OfflinePageUtils::CanDownloadAsOfflinePage(mime_type)) {
|
| const content::ResourceRequestInfo* info =
|
| content::ResourceRequestInfo::ForRequest(request_);
|
| if (!info)
|
|
|