Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1412)

Unified Diff: content/shell/browser/shell_download_manager_delegate.cc

Issue 648673002: Content Shell: Introduce LayoutTestDownloadManagerDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@637843003
Patch Set: Ugh. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698