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

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

Issue 11048039: Don't use web intents for rss feeds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test Created 8 years, 2 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 | « chrome/browser/download/chrome_download_manager_delegate_unittest.cc ('k') | net/base/mime_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/buffered_resource_handler.cc
diff --git a/content/browser/renderer_host/buffered_resource_handler.cc b/content/browser/renderer_host/buffered_resource_handler.cc
index 98aae337af7b65d0d39e39a20b08640225dd6d3d..816413a659e164b3c19ab9ee24644df099aa58e9 100644
--- a/content/browser/renderer_host/buffered_resource_handler.cc
+++ b/content/browser/renderer_host/buffered_resource_handler.cc
@@ -132,6 +132,12 @@ 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 | « chrome/browser/download/chrome_download_manager_delegate_unittest.cc ('k') | net/base/mime_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698