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

Unified Diff: chrome/test/base/in_process_browser_test.cc

Issue 10795038: Enable captive portal detection by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Missed the browser_tests Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/in_process_browser_test.cc
===================================================================
--- chrome/test/base/in_process_browser_test.cc (revision 148558)
+++ chrome/test/base/in_process_browser_test.cc (working copy)
@@ -14,6 +14,7 @@
#include "base/string_number_conversions.h"
#include "base/test/test_file_util.h"
#include "chrome/browser/browser_process.h"
+#include "chrome/browser/captive_portal/captive_portal_service.h"
#include "chrome/browser/io_thread.h"
#include "chrome/browser/lifetime/application_lifetime.h"
#include "chrome/browser/profiles/profile.h"
@@ -145,6 +146,11 @@
// time code is directly executed.
autorelease_pool_ = new base::mac::ScopedNSAutoreleasePool;
#endif
+
+#if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
+ captive_portal::CaptivePortalService::set_is_disabled_for_testing(true);
+#endif
+
BrowserTestBase::SetUp();
}
@@ -175,8 +181,8 @@
command_line->AppendSwitch(switches::kDisableZeroBrowsersOpenForTests);
if (!command_line->HasSwitch(switches::kHomePage)) {
- command_line->AppendSwitchASCII(
- switches::kHomePage, chrome::kAboutBlankURL);
+ command_line->AppendSwitchASCII(
+ switches::kHomePage, chrome::kAboutBlankURL);
}
if (command_line->GetArgs().empty())
command_line->AppendArg(chrome::kAboutBlankURL);
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698