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

Unified Diff: chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc

Issue 2537503002: [Prerender] Get the prerender mode from Finch field trial. (Closed)
Patch Set: cleanup Created 4 years 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: chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc
diff --git a/chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc b/chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc
index 4b25d05d567029a1fe307312d88a73cd75f97cbb..c5853e0cf13715721676ac88a2e0ffecde19add0 100644
--- a/chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc
+++ b/chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc
@@ -26,7 +26,6 @@
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/browser/ui/webui/net_internals/net_internals_ui.h"
#include "chrome/common/channel_info.h"
-#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/net_log/chrome_net_log.h"
@@ -330,15 +329,11 @@ NetInternalsTest::NetInternalsTest()
NetInternalsTest::~NetInternalsTest() {
}
-void NetInternalsTest::SetUpCommandLine(base::CommandLine* command_line) {
- WebUIBrowserTest::SetUpCommandLine(command_line);
- // Needed to test the prerender view.
- command_line->AppendSwitchASCII(switches::kPrerenderMode,
- switches::kPrerenderModeSwitchValueEnabled);
-}
-
void NetInternalsTest::SetUpOnMainThread() {
WebUIBrowserTest::SetUpOnMainThread();
+ // Needed to test the prerender view.
+ prerender::PrerenderManager::SetMode(
+ prerender::PrerenderManager::PRERENDER_MODE_ENABLED);
// Increase the memory allowed in a prerendered page above normal settings,
// as debug builds use more memory and often go over the usual limit.
Profile* profile = browser()->profile();
« no previous file with comments | « chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698