| Index: chrome/common/chrome_paths_win.cc
|
| diff --git a/chrome/common/chrome_paths_win.cc b/chrome/common/chrome_paths_win.cc
|
| index 5eefb78f6250e1b29d4870b750c48ab13ff31218..6a692a98cee16a4916c2f83c962227b53a031039 100644
|
| --- a/chrome/common/chrome_paths_win.cc
|
| +++ b/chrome/common/chrome_paths_win.cc
|
| @@ -17,6 +17,13 @@
|
| #include "chrome/common/chrome_constants.h"
|
| #include "chrome/installer/util/browser_distribution.h"
|
|
|
| +namespace {
|
| +// TODO(pastarmovj): Remove this copy of kServiceProcess once we get
|
| +// better way to share constants between content and chrome. Using content
|
| +// switches makes all hell break loose on us when linking.
|
| +const char kServiceProcess[] = "service";
|
| +}
|
| +
|
| namespace chrome {
|
|
|
| bool GetDefaultUserDataDirectory(FilePath* result) {
|
| @@ -97,4 +104,11 @@ bool GetUserDesktop(FilePath* result) {
|
| return true;
|
| }
|
|
|
| +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 == kServiceProcess;
|
| +}
|
| +
|
| } // namespace chrome
|
|
|