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

Side by Side Diff: chrome/browser/ui/webui/downloads_ui_browsertest.cc

Issue 1314793003: Enable Material Design downloads on Canary/Chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/downloads_ui_browsertest.h" 5 #include "chrome/browser/ui/webui/downloads_ui_browsertest.h"
6 6
7 #include "base/command_line.h"
7 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
8 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
11 #include "chrome/browser/ui/webui/downloads_util.h"
12 #include "chrome/common/chrome_switches.h"
10 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
11 #include "content/public/test/test_utils.h" 14 #include "content/public/test/test_utils.h"
12 15
13 DownloadsUIBrowserTest::DownloadsUIBrowserTest() {} 16 DownloadsUIBrowserTest::DownloadsUIBrowserTest() {}
14 17
15 DownloadsUIBrowserTest::~DownloadsUIBrowserTest() {} 18 DownloadsUIBrowserTest::~DownloadsUIBrowserTest() {}
16 19
20 void DownloadsUIBrowserTest::SetUpCommandLine(
21 base::CommandLine* command_line) {
22 WebUIBrowserTest::SetUpCommandLine(command_line);
23 command_line->AppendSwitch(switches::kDisableMaterialDesignDownloads);
24 ASSERT_FALSE(MdDownloadsEnabled());
25 }
26
17 void DownloadsUIBrowserTest::SetDeleteAllowed(bool allowed) { 27 void DownloadsUIBrowserTest::SetDeleteAllowed(bool allowed) {
18 browser()->profile()->GetPrefs()-> 28 browser()->profile()->GetPrefs()->
19 SetBoolean(prefs::kAllowDeletingBrowserHistory, allowed); 29 SetBoolean(prefs::kAllowDeletingBrowserHistory, allowed);
20 } 30 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/downloads_ui_browsertest.h ('k') | chrome/browser/ui/webui/downloads_ui_supervised_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698