diff options
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/out_of_proc_test_runner.cc | 3 | ||||
-rw-r--r-- | chrome/test/ui/ui_test.cc | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/chrome/test/out_of_proc_test_runner.cc b/chrome/test/out_of_proc_test_runner.cc index a14a38a..43a7525 100644 --- a/chrome/test/out_of_proc_test_runner.cc +++ b/chrome/test/out_of_proc_test_runner.cc @@ -273,6 +273,9 @@ int RunTest(const std::string& test_name) { } new_cmd_line.AppendSwitchPath(switches::kUserDataDir, temp_dir.path()); + // file:// access for ChromeOS. + new_cmd_line.AppendSwitch(switches::kAllowFileAccess); + base::ProcessHandle process_handle; #if defined(OS_POSIX) const char* browser_wrapper = getenv("BROWSER_WRAPPER"); diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc index 29075b3..34cd0d2 100644 --- a/chrome/test/ui/ui_test.cc +++ b/chrome/test/ui/ui_test.cc @@ -751,6 +751,9 @@ bool UITestBase::LaunchBrowserHelper(const CommandLine& arguments, // Disable TabCloseableStateWatcher for tests. command_line.AppendSwitch(switches::kDisableTabCloseableStateWatcher); + // Allow file:// access on ChromeOS. + command_line.AppendSwitch(switches::kAllowFileAccess); + test_launcher_utils::PrepareBrowserCommandLineForTests(&command_line); DebugFlags::ProcessDebugFlags( |