Chromium Code Reviews| Index: chrome/browser/download/chrome_download_manager_delegate.cc |
| diff --git a/chrome/browser/download/chrome_download_manager_delegate.cc b/chrome/browser/download/chrome_download_manager_delegate.cc |
| index 65e42702d0cf8fedc400cb577aef16e11f7b7767..b0323ddd25a3921a6fffe22d6d6d09306f2fbe66 100644 |
| --- a/chrome/browser/download/chrome_download_manager_delegate.cc |
| +++ b/chrome/browser/download/chrome_download_manager_delegate.cc |
| @@ -260,6 +260,26 @@ bool ChromeDownloadManagerDelegate::ShouldOpenDownload(DownloadItem* item) { |
| bool ChromeDownloadManagerDelegate::ShouldOpenWithWebIntents( |
| const DownloadItem* item) { |
| + std::string mime_type = item->GetMimeType(); |
| + if (mime_type == "application/rss+xml" || |
| + mime_type == "application/atom+xml") { |
| + return true; |
| + } |
| + |
| +#if defined(OS_CHROMEOS) |
| + if (mime_type == "application/msword" || |
|
darin (slow to review)
2012/04/17 00:03:14
On ChromeOS, how will I be able to force these MIM
Greg Billock
2012/04/18 18:01:24
The web intent is triggered post-download. IOW, th
|
| + mime_type == "application/vnd.ms-powerpoint" || |
| + mime_type == "application/vnd.ms-excel" || |
| + mime_type == "application/vnd.openxmlformats-officedocument." |
| + "wordprocessingml.document" || |
| + mime_type == "application/vnd.openxmlformats-officedocument." |
| + "presentationml.presentation" || |
| + mime_type == "application/vnd.openxmlformats-officedocument." |
| + "spreadsheetml.sheet") { |
| + return true; |
| + } |
| +#endif // defined(OS_CHROMEOS) |
| + |
| return false; |
| } |