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

Unified Diff: ios/web/web_state/ui/crw_web_controller.mm

Issue 1491263002: Revert of Fixes document type detection on iOS 9. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2564
Patch Set: Created 5 years 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
Index: ios/web/web_state/ui/crw_web_controller.mm
diff --git a/ios/web/web_state/ui/crw_web_controller.mm b/ios/web/web_state/ui/crw_web_controller.mm
index 1f838cd80001c704d0ad8f9cdeef339fed0eb90d..960077298684222386a48b61319fb94727f7ff32 100644
--- a/ios/web/web_state/ui/crw_web_controller.mm
+++ b/ios/web/web_state/ui/crw_web_controller.mm
@@ -3854,18 +3854,4 @@
_externalRequest.reset();
}
-- (web::WebViewDocumentType)documentTypeFromMIMEType:(NSString*)MIMEType {
- if (!MIMEType.length) {
- return web::WEB_VIEW_DOCUMENT_TYPE_UNKNOWN;
- }
-
- if ([MIMEType isEqualToString:@"text/html"] ||
- [MIMEType isEqualToString:@"application/xhtml+xml"] ||
- [MIMEType isEqualToString:@"application/xml"]) {
- return web::WEB_VIEW_DOCUMENT_TYPE_HTML;
- }
-
- return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC;
-}
-
@end
« no previous file with comments | « ios/web/web_state/ui/crw_ui_web_view_web_controller.mm ('k') | ios/web/web_state/ui/crw_web_controller+protected.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698