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

Unified Diff: chrome/browser/captive_portal/captive_portal_service_unittest.cc

Issue 10795038: Enable captive portal detection by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync 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
Index: chrome/browser/captive_portal/captive_portal_service_unittest.cc
===================================================================
--- chrome/browser/captive_portal/captive_portal_service_unittest.cc (revision 147935)
+++ chrome/browser/captive_portal/captive_portal_service_unittest.cc (working copy)
@@ -138,8 +138,13 @@
void Initialize(bool enable_on_command_line) {
if (enable_on_command_line) {
- CommandLine::ForCurrentProcess()->AppendSwitch(
- switches::kCaptivePortalDetection);
+ CommandLine::ForCurrentProcess()->AppendSwitchASCII(
+ switches::kCaptivePortalDetection,
+ switches::kCaptivePortalDetectionEnabled);
+ } else {
+ CommandLine::ForCurrentProcess()->AppendSwitchASCII(
+ switches::kCaptivePortalDetection,
+ switches::kCaptivePortalDetectionDisabled);
}
profile_.reset(new TestingProfile());

Powered by Google App Engine
This is Rietveld 408576698