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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/chrome_paths_internal.h" 5 #include "chrome/common/chrome_paths_internal.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "content/public/common/content_switches.h"
10 11
11 namespace chrome { 12 namespace chrome {
12 13
13 void GetUserCacheDirectory(const base::FilePath& profile_dir, 14 void GetUserCacheDirectory(const base::FilePath& profile_dir,
14 base::FilePath* result) { 15 base::FilePath* result) {
15 if (!PathService::Get(base::DIR_CACHE, result)) 16 if (!PathService::Get(base::DIR_CACHE, result))
16 *result = profile_dir; 17 *result = profile_dir;
17 } 18 }
18 19
19 bool GetDefaultUserDataDirectory(base::FilePath* result) { 20 bool GetDefaultUserDataDirectory(base::FilePath* result) {
(...skipping 23 matching lines...) Expand all
43 NOTIMPLEMENTED(); 44 NOTIMPLEMENTED();
44 return false; 45 return false;
45 } 46 }
46 47
47 bool GetUserVideosDirectory(base::FilePath* result) { 48 bool GetUserVideosDirectory(base::FilePath* result) {
48 NOTIMPLEMENTED(); 49 NOTIMPLEMENTED();
49 return false; 50 return false;
50 } 51 }
51 52
52 bool ProcessNeedsProfileDir(const std::string& process_type) { 53 bool ProcessNeedsProfileDir(const std::string& process_type) {
54 // SELinux prohibits accessing the data directory for isolated services.
55 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
56 return false;
57
53 return true; 58 return true;
54 } 59 }
55 60
56 } // namespace chrome 61 } // namespace chrome
OLDNEW
« 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