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

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

Issue 9911029: Refactored the CloudPolicyProvider so that it becomes initialized once and stays initialized. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Updated expectations in failing browser_tests Created 8 years, 9 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/test/base/in_process_browser_test.cc
diff --git a/chrome/test/base/in_process_browser_test.cc b/chrome/test/base/in_process_browser_test.cc
index 75db28022c5968c5a8683e14c57d77898e328253..570b500087367633e5251b5addb0e8aee0c3fe18 100644
--- a/chrome/test/base/in_process_browser_test.cc
+++ b/chrome/test/base/in_process_browser_test.cc
@@ -176,6 +176,14 @@ void InProcessBrowserTest::PrepareTestCommandLine(CommandLine* command_line) {
// TODO(pkotwicz): Investigate if we can remove this switch.
command_line->AppendSwitch(switches::kDisableZeroBrowsersOpenForTests);
+
+#if defined(OS_CHROMEOS)
+ // Setup a bogus device management URL, so that the cloud policy providers
+ // are created. This doesn't have to be a real server.
+ command_line->AppendSwitchASCII(switches::kDeviceManagementUrl,
+ "http://localhost:8080/device_management");
+ command_line->AppendSwitch(switches::kEnableDevicePolicy);
+#endif
}
bool InProcessBrowserTest::CreateUserDataDirectory() {
« chrome/browser/policy/configuration_policy_provider.cc ('K') | « chrome/chrome_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698