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

Unified Diff: chrome/browser/net/chrome_network_delegate.cc

Issue 2877343002: chromeos: Remove kTestType conditional from ChromeNetworkDelegate (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698