Index: content/shell/browser/shell_download_manager_delegate.cc |
diff --git a/content/shell/browser/shell_download_manager_delegate.cc b/content/shell/browser/shell_download_manager_delegate.cc |
index 81233e56f1d32252021f5ee78590afa1d75be436..9f838784fbf4193c8a122f8ba25350a0d9b7b0d2 100644 |
--- a/content/shell/browser/shell_download_manager_delegate.cc |
+++ b/content/shell/browser/shell_download_manager_delegate.cc |
@@ -19,7 +19,6 @@ |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/download_manager.h" |
#include "content/public/browser/web_contents.h" |
-#include "content/shell/browser/webkit_test_controller.h" |
#include "content/shell/common/shell_switches.h" |
#include "net/base/filename_util.h" |
@@ -98,12 +97,6 @@ bool ShellDownloadManagerDelegate::DetermineDownloadTarget( |
bool ShellDownloadManagerDelegate::ShouldOpenDownload( |
DownloadItem* item, |
const DownloadOpenDelayedCallback& callback) { |
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree) && |
- WebKitTestController::Get()->IsMainWindow(item->GetWebContents()) && |
- item->GetMimeType() == "text/html") { |
- WebKitTestController::Get()->OpenURL( |
- net::FilePathToFileURL(item->GetFullPath())); |
- } |
return true; |
} |