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

Unified Diff: content/browser/loader/buffered_resource_handler.cc

Issue 22258008: RSS feeds with application/rss+xml or application/atom+xml should be rendered with XMLTreeViewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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: content/browser/loader/buffered_resource_handler.cc
diff --git a/content/browser/loader/buffered_resource_handler.cc b/content/browser/loader/buffered_resource_handler.cc
index a3afb3fa7b6abacd66982cc1a51b7ef1fc9cb9b8..d00972da897ce69650a57971250b886093e8fd6b 100644
--- a/content/browser/loader/buffered_resource_handler.cc
+++ b/content/browser/loader/buffered_resource_handler.cc
@@ -133,12 +133,6 @@ bool BufferedResourceHandler::OnResponseStarted(
// treat the response as "text/plain". This is the most secure option.
response_->head.mime_type.assign("text/plain");
}
-
- // Treat feed types as text/plain.
- if (response_->head.mime_type == "application/rss+xml" ||
- response_->head.mime_type == "application/atom+xml") {
- response_->head.mime_type.assign("text/plain");
- }
}
state_ = STATE_PROCESSING;
« 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