| Index: chrome/test/base/web_ui_browser_test_browsertest.cc
|
| diff --git a/chrome/test/base/web_ui_browser_test_browsertest.cc b/chrome/test/base/web_ui_browser_test_browsertest.cc
|
| index 8ddf2e94e06a4ebc5aac00e957db297ae6950398..a90df2b52684801f4aff479c7df64d5496f6dd8f 100644
|
| --- a/chrome/test/base/web_ui_browser_test_browsertest.cc
|
| +++ b/chrome/test/base/web_ui_browser_test_browsertest.cc
|
| @@ -6,7 +6,9 @@
|
|
|
| #include "base/bind.h"
|
| #include "base/bind_helpers.h"
|
| +#include "base/command_line.h"
|
| #include "base/values.h"
|
| +#include "chrome/common/chrome_switches.h"
|
| #include "chrome/common/url_constants.h"
|
| #include "chrome/test/base/ui_test_utils.h"
|
| #include "chrome/test/base/web_ui_browser_test.h"
|
| @@ -29,6 +31,13 @@ class WebUIBrowserExpectFailTest : public WebUIBrowserTest {
|
| s_test_ = this;
|
| }
|
|
|
| + // Disable new downloads UI as it is very very slow. https://crbug.com/526577
|
| + // TODO(dbeam): remove this once the downloads UI is not slow.
|
| + void SetUpCommandLine(base::CommandLine* command_line) override {
|
| + WebUIBrowserTest::SetUpCommandLine(command_line);
|
| + command_line->AppendSwitch(switches::kDisableMaterialDesignDownloads);
|
| + }
|
| +
|
| protected:
|
| ~WebUIBrowserExpectFailTest() override {
|
| EXPECT_TRUE(s_test_);
|
|
|