Index: chrome/browser/net/chrome_network_delegate.cc |
diff --git a/chrome/browser/net/chrome_network_delegate.cc b/chrome/browser/net/chrome_network_delegate.cc |
index 55eb0d92c882778756f6320830c2048f87a17bb3..84a4eb8a15a787786144526472125245c235c91f 100644 |
--- a/chrome/browser/net/chrome_network_delegate.cc |
+++ b/chrome/browser/net/chrome_network_delegate.cc |
@@ -452,10 +452,8 @@ bool ChromeNetworkDelegate::OnCanAccessFile(const net::URLRequest& request, |
#if defined(OS_CHROMEOS) |
// If we're running Chrome for ChromeOS on Linux, we want to allow file |
// access. This is checked here to make IsAccessAllowed() unit-testable. |
- if (!base::SysInfo::IsRunningOnChromeOS() || |
- base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kTestType)) { |
+ if (!base::SysInfo::IsRunningOnChromeOS()) |
return true; |
- } |
#endif |
return IsAccessAllowed(path, profile_path_); |