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

Unified Diff: chrome/common/chrome_paths_win.cc

Issue 2884333004: Relocate Windows ProcessNeedsProfileDir to install_static (Closed)
Patch Set: typo 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 | chrome/install_static/install_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_paths_win.cc
diff --git a/chrome/common/chrome_paths_win.cc b/chrome/common/chrome_paths_win.cc
index 7c09e7e3e30a7b8b5496494bb3c51c56d15da04b..062a85621ef18c3c9950887548d004b66045998c 100644
--- a/chrome/common/chrome_paths_win.cc
+++ b/chrome/common/chrome_paths_win.cc
@@ -109,22 +109,7 @@ bool GetUserVideosDirectory(base::FilePath* result) {
}
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.
-
- if (process_type.empty() ||
- process_type == switches::kCloudPrintServiceProcess)
- return true;
-
-#if !defined(DISABLE_NACL)
- if (process_type == switches::kNaClBrokerProcess ||
- process_type == switches::kNaClLoaderProcess) {
- return true;
- }
-#endif
-
- return false;
+ return install_static::ProcessNeedsProfileDir(process_type);
}
} // namespace chrome
« no previous file with comments | « no previous file | chrome/install_static/install_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698