Chromium Code Reviews| Index: content/browser/frame_host/navigation_controller_impl.cc |
| diff --git a/content/browser/frame_host/navigation_controller_impl.cc b/content/browser/frame_host/navigation_controller_impl.cc |
| index 0658787b402b4c7cadbd9bad2d3af710b679ae4c..695d1862e503788095b79d46bd694f7f23cd2612 100644 |
| --- a/content/browser/frame_host/navigation_controller_impl.cc |
| +++ b/content/browser/frame_host/navigation_controller_impl.cc |
| @@ -488,8 +488,7 @@ NavigationEntryImpl* NavigationControllerImpl::GetLastCommittedEntry() const { |
| bool NavigationControllerImpl::CanViewSource() const { |
| const std::string& mime_type = delegate_->GetContentsMimeType(); |
| - bool is_viewable_mime_type = net::IsSupportedNonImageMimeType(mime_type) && |
| - !net::IsSupportedMediaMimeType(mime_type); |
|
Ryan Sleevi
2015/02/25 03:04:24
This change is clearly a change in behaviour and l
servolk
2015/02/25 23:39:31
You are talking about IsSupportedNonImageMimeType
Ryan Sleevi
2015/02/25 23:43:13
No. The very clear deletion of "IsSupportedMediaMi
|
| + bool is_viewable_mime_type = net::IsSupportedNonImageMimeType(mime_type); |
| NavigationEntry* visible_entry = GetVisibleEntry(); |
| return visible_entry && !visible_entry->IsViewSourceMode() && |
| is_viewable_mime_type && !delegate_->GetInterstitialPage(); |