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

Unified Diff: chrome/common/chrome_paths_android.cc

Issue 630123003: [Android] Do not warm up access to the profile directory in isolated services. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_paths_android.cc
diff --git a/chrome/common/chrome_paths_android.cc b/chrome/common/chrome_paths_android.cc
index 1cee68a53904e67157d59aa3d7d814e489875742..edbac864540f8d8f7f730e6ad992a91e9210a0e3 100644
--- a/chrome/common/chrome_paths_android.cc
+++ b/chrome/common/chrome_paths_android.cc
@@ -7,6 +7,7 @@
#include "base/files/file_path.h"
#include "base/logging.h"
#include "base/path_service.h"
+#include "content/public/common/content_switches.h"
namespace chrome {
@@ -50,6 +51,10 @@ 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)
klobag.chromium 2014/10/17 17:41:14 How about the other child process type? Should we
Robert Sesek 2014/10/17 18:00:32 I wanted to keep the change scoped small, since I
+ return false;
+
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698