Index: chrome/browser/download/download_shelf.cc |
=================================================================== |
--- chrome/browser/download/download_shelf.cc (revision 30182) |
+++ chrome/browser/download/download_shelf.cc (working copy) |
@@ -32,9 +32,8 @@ |
return download_->open_when_complete(); |
} |
case ALWAYS_OPEN_TYPE: { |
- const FilePath::StringType extension = |
- file_util::GetFileExtensionFromPath(download_->full_path()); |
- return download_->manager()->ShouldOpenFileExtension(extension); |
+ return download_->manager()->ShouldOpenFileBasedOnExtension( |
+ download_->full_path()); |
} |
case TOGGLE_PAUSE: { |
return download_->is_paused(); |
@@ -96,10 +95,8 @@ |
download_util::OpenDownload(download_); |
break; |
case ALWAYS_OPEN_TYPE: { |
- const FilePath::StringType extension = |
- file_util::GetFileExtensionFromPath(download_->full_path()); |
- download_->manager()->OpenFilesOfExtension( |
- extension, !ItemIsChecked(ALWAYS_OPEN_TYPE)); |
+ download_->manager()->OpenFilesBasedOnExtension( |
+ download_->full_path(), !ItemIsChecked(ALWAYS_OPEN_TYPE)); |
break; |
} |
case CANCEL: |