diff options
author | rsesek <rsesek@chromium.org> | 2014-10-22 17:13:36 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-23 00:13:55 +0000 |
commit | e68288d937c5836b55aa832ce9c8be314507ad6e (patch) | |
tree | 49a93591e23955a933ced1fa62288639fd082d57 /chrome/common/chrome_paths_android.cc | |
parent | 3fad747a3352fb78e4beaf51cbf839e72168a4cb (diff) | |
download | chromium_src-e68288d937c5836b55aa832ce9c8be314507ad6e.zip chromium_src-e68288d937c5836b55aa832ce9c8be314507ad6e.tar.gz chromium_src-e68288d937c5836b55aa832ce9c8be314507ad6e.tar.bz2 |
[Android] Only specify the browser process as needing access to the profile directory.
This is a follow-up CL to https://codereview.chromium.org/630123003/.
BUG=424264
R=feng@chromium.org
Review URL: https://codereview.chromium.org/666553002
Cr-Commit-Position: refs/heads/master@{#300804}
Diffstat (limited to 'chrome/common/chrome_paths_android.cc')
-rw-r--r-- | chrome/common/chrome_paths_android.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/chrome/common/chrome_paths_android.cc b/chrome/common/chrome_paths_android.cc index edbac86..a78b48d 100644 --- a/chrome/common/chrome_paths_android.cc +++ b/chrome/common/chrome_paths_android.cc @@ -51,11 +51,9 @@ bool GetUserVideosDirectory(base::FilePath* result) { } bool ProcessNeedsProfileDir(const std::string& process_type) { - // SELinux prohibits accessing the data directory for isolated services. - if (process_type == switches::kRendererProcess) - return false; - - return true; + // SELinux prohibits accessing the data directory from isolated services. Only + // the browser (empty process type) should access the profile directory. + return process_type.empty(); } } // namespace chrome |