Commit 17bc408b authored by jochen@chromium.org's avatar jochen@chromium.org

[content shell] don't pop up a download dialog during layout tests

BUG=111316
R=marja@chromium.org


Review URL: https://chromiumcodereview.appspot.com/11830051

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176114 0039d316-1c4b-4281-b951-d872f2087c98
parent 8f120f28
...@@ -89,6 +89,11 @@ DownloadManagerDelegate* ShellBrowserContext::GetDownloadManagerDelegate() { ...@@ -89,6 +89,11 @@ DownloadManagerDelegate* ShellBrowserContext::GetDownloadManagerDelegate() {
if (!download_manager_delegate_.get()) { if (!download_manager_delegate_.get()) {
download_manager_delegate_ = new ShellDownloadManagerDelegate(); download_manager_delegate_ = new ShellDownloadManagerDelegate();
download_manager_delegate_->SetDownloadManager(manager); download_manager_delegate_->SetDownloadManager(manager);
CommandLine* cmd_line = CommandLine::ForCurrentProcess();
if (cmd_line->HasSwitch(switches::kDumpRenderTree)) {
download_manager_delegate_->SetDownloadBehaviorForTesting(
path_.Append(FILE_PATH_LITERAL("downloads")));
}
} }
return download_manager_delegate_.get(); return download_manager_delegate_.get();
......
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