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

Side by Side Diff: chrome/browser/chromeos/login/kiosk_browsertest.cc

Issue 66713002: Get rid of {Enable|Disable|ChromeCaptivePortalDetector flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restored blank line. Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/chromeos/login/oobe_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "apps/shell_window.h" 5 #include "apps/shell_window.h"
6 #include "apps/shell_window_registry.h" 6 #include "apps/shell_window_registry.h"
7 #include "apps/ui/native_app_window.h" 7 #include "apps/ui/native_app_window.h"
8 #include "ash/desktop_background/desktop_background_controller.h" 8 #include "ash/desktop_background/desktop_background_controller.h"
9 #include "ash/desktop_background/desktop_background_controller_observer.h" 9 #include "ash/desktop_background/desktop_background_controller_observer.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 } 277 }
278 278
279 // Clean up while main thread still runs. 279 // Clean up while main thread still runs.
280 // See http://crbug.com/176659. 280 // See http://crbug.com/176659.
281 KioskAppManager::Get()->CleanUp(); 281 KioskAppManager::Get()->CleanUp();
282 } 282 }
283 283
284 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { 284 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
285 command_line->AppendSwitch(chromeos::switches::kLoginManager); 285 command_line->AppendSwitch(chromeos::switches::kLoginManager);
286 command_line->AppendSwitch(chromeos::switches::kForceLoginManagerInTests); 286 command_line->AppendSwitch(chromeos::switches::kForceLoginManagerInTests);
287 command_line->AppendSwitch(
288 chromeos::switches::kDisableChromeCaptivePortalDetector);
289 command_line->AppendSwitch(::switches::kDisableBackgroundNetworking); 287 command_line->AppendSwitch(::switches::kDisableBackgroundNetworking);
290 command_line->AppendSwitchASCII(chromeos::switches::kLoginProfile, "user"); 288 command_line->AppendSwitchASCII(chromeos::switches::kLoginProfile, "user");
291 289
292 // Create gaia and webstore URL from test server url but using different 290 // Create gaia and webstore URL from test server url but using different
293 // host names. This is to avoid gaia response being tagged as from 291 // host names. This is to avoid gaia response being tagged as from
294 // webstore in chrome_resource_dispatcher_host_delegate.cc. 292 // webstore in chrome_resource_dispatcher_host_delegate.cc.
295 const GURL& server_url = embedded_test_server()->base_url(); 293 const GURL& server_url = embedded_test_server()->base_url();
296 294
297 std::string gaia_host("gaia"); 295 std::string gaia_host("gaia");
298 GURL::Replacements replace_gaia_host; 296 GURL::Replacements replace_gaia_host;
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 content::WindowedNotificationObserver( 965 content::WindowedNotificationObserver(
968 chrome::NOTIFICATION_KIOSK_AUTOLAUNCH_WARNING_VISIBLE, 966 chrome::NOTIFICATION_KIOSK_AUTOLAUNCH_WARNING_VISIBLE,
969 content::NotificationService::AllSources()).Wait(); 967 content::NotificationService::AllSources()).Wait();
970 968
971 // Wait for the wallpaper to load. 969 // Wait for the wallpaper to load.
972 WaitForWallpaper(); 970 WaitForWallpaper();
973 EXPECT_TRUE(wallpaper_loaded()); 971 EXPECT_TRUE(wallpaper_loaded());
974 } 972 }
975 973
976 } // namespace chromeos 974 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/chromeos/login/oobe_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698