X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fcontent%2Fshell%2Fbrowser%2Fshell_download_manager_delegate.cc;h=9f838784fbf4193c8a122f8ba25350a0d9b7b0d2;hb=1afa4dd80ef85af7c90efaea6959db1d92330844;hp=81233e56f1d32252021f5ee78590afa1d75be436;hpb=90762837333c13ccf56f2ad88e4481fc71e8d281;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/content/shell/browser/shell_download_manager_delegate.cc b/src/content/shell/browser/shell_download_manager_delegate.cc index 81233e5..9f83878 100644 --- a/src/content/shell/browser/shell_download_manager_delegate.cc +++ b/src/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; }