Chromium Code Reviews| Index: chrome/common/chrome_paths_win.cc |
| diff --git a/chrome/common/chrome_paths_win.cc b/chrome/common/chrome_paths_win.cc |
| index 2c556abb42dbb7514245325cd30e63c9b7d17c8e..8b48cb241d065b27079bd319986a0929fc4650cb 100644 |
| --- a/chrome/common/chrome_paths_win.cc |
| +++ b/chrome/common/chrome_paths_win.cc |
| @@ -115,10 +115,17 @@ bool ProcessNeedsProfileDir(const std::string& process_type) { |
| // On windows we don't want subprocesses other than the browser process and |
| // service processes to be able to use the profile directory because if it |
| // lies on a network share the sandbox will prevent us from accessing it. |
| - return process_type.empty() || |
| - process_type == switches::kServiceProcess || |
| - process_type == switches::kNaClBrokerProcess || |
| - process_type == switches::kNaClLoaderProcess; |
| + |
| + if (process_type.empty() || process_type == switches::kServiceProcess) |
| + return true; |
| + |
| +#if !defined(DISABLE_NACL) |
| + if (process_type == switches::kNaClBrokerProcess || |
| + process_type == switches::kNaClLoaderProcess) |
|
ukai
2013/12/03 08:04:46
nit: if (...) {
return true;
}
for multiline if
|
| + return true; |
| +#endif |
| + |
| + return false; |
| } |
| } // namespace chrome |