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

Unified Diff: base/path_service.h

Issue 258743005: Enable Enterprise enrollment on desktop builds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linkage visibility of policy protobufs Created 6 years, 8 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 | base/path_service.cc » ('j') | chromeos/dbus/fake_cryptohome_client.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/path_service.h
diff --git a/base/path_service.h b/base/path_service.h
index 9759754377f9a060b04e6503e12884d395b7217a..ec53c791e5da179b3b50cf7f998a62223ac8592c 100644
--- a/base/path_service.h
+++ b/base/path_service.h
@@ -53,6 +53,13 @@ class BASE_EXPORT PathService {
const base::FilePath& path,
bool create);
+ // This function also does the same as PathService::Override but |path| must
+ // already be an absolute path. This can be used to override paths to
+ // non-existent files in posix systems, since Override relies on realpath()
+ // and that fails if the path doesn't exist.
+ // If |path| is a directory then it isn't created by this method.
+ static void OverrideWithAbsolutePath(int key, const base::FilePath& path);
brettw 2014/04/29 22:41:51 I'd rather see this as an additional flag to Overr
Joao da Silva 2014/04/30 13:08:06 Done.
+
// To extend the set of supported keys, you can register a path provider,
// which is just a function mirroring PathService::Get. The ProviderFunc
// returns false if it cannot provide a non-empty path for the given key.
« no previous file with comments | « no previous file | base/path_service.cc » ('j') | chromeos/dbus/fake_cryptohome_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698