diff options
author | pastarmovj@chromium.org <pastarmovj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-09 12:35:03 +0000 |
---|---|---|
committer | pastarmovj@chromium.org <pastarmovj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-09 12:35:03 +0000 |
commit | 288e35016c7dc7517dabdf1f686e28eceb83d2c3 (patch) | |
tree | 0b2cd79315cf2aea7de101319f4aaf7240250dd4 /chrome/common/chrome_paths_internal.h | |
parent | 5aab223f965826e7752d0f22487ed85ca2bcaa05 (diff) | |
download | chromium_src-288e35016c7dc7517dabdf1f686e28eceb83d2c3.zip chromium_src-288e35016c7dc7517dabdf1f686e28eceb83d2c3.tar.gz chromium_src-288e35016c7dc7517dabdf1f686e28eceb83d2c3.tar.bz2 |
Make sure only the main browser process and service processes are allowed to create the profile directory.
This patch lets Chrome start with profile located on a network share on
Windows Vista and newer.
BUG=120388
TEST=Start Chrome with --user-data-dir pointing to a network share location and try to navigate to a web page. This should not lead to a hang of the renderer. NaCl and NPAPI plugins should run fine too.
Review URL: https://chromiumcodereview.appspot.com/10390003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136020 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_paths_internal.h')
-rw-r--r-- | chrome/common/chrome_paths_internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/common/chrome_paths_internal.h b/chrome/common/chrome_paths_internal.h index d4a1151..0e60ce1 100644 --- a/chrome/common/chrome_paths_internal.h +++ b/chrome/common/chrome_paths_internal.h @@ -6,6 +6,8 @@ #define CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ #pragma once +#include <string> + #include "build/build_config.h" #if defined(OS_MACOSX) @@ -85,6 +87,9 @@ NSBundle* OuterAppBundle(); #endif // OS_MACOSX +// Checks if the |process_type| has the rights to access the profile. +bool ProcessNeedsProfileDir(const std::string& process_type); + } // namespace chrome #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ |