Commit 91fde4a3 authored by jochen@chromium.org's avatar jochen@chromium.org

[content shell] further restrict what files to open during layout tests

BUG=111316
R=marja@chromium.org

Review URL: https://codereview.chromium.org/15979019

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203934 0039d316-1c4b-4281-b951-d872f2087c98
parent 09b9c9e2
...@@ -91,7 +91,8 @@ bool ShellDownloadManagerDelegate::ShouldOpenDownload( ...@@ -91,7 +91,8 @@ bool ShellDownloadManagerDelegate::ShouldOpenDownload(
DownloadItem* item, DownloadItem* item,
const DownloadOpenDelayedCallback& callback) { const DownloadOpenDelayedCallback& callback) {
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree) && if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree) &&
WebKitTestController::Get()->IsMainWindow(item->GetWebContents())) { WebKitTestController::Get()->IsMainWindow(item->GetWebContents()) &&
item->GetMimeType() == "text/html") {
WebKitTestController::Get()->OpenURL( WebKitTestController::Get()->OpenURL(
net::FilePathToFileURL(item->GetFullPath())); net::FilePathToFileURL(item->GetFullPath()));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment