diff options
Diffstat (limited to 'base/path_service.h')
-rw-r--r-- | base/path_service.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/base/path_service.h b/base/path_service.h index 4d99cdc..2b59247 100644 --- a/base/path_service.h +++ b/base/path_service.h @@ -45,6 +45,9 @@ class PathService { // over the lifetime of the app, so this method should be used with caution. static bool Override(int key, const FilePath& path); + // Return whether a path was overridden. + static bool IsOverridden(int key); + // 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. @@ -62,7 +65,6 @@ class PathService { int key_end); private: static bool GetFromCache(int key, FilePath* path); - static bool GetFromOverrides(int key, FilePath* path); static void AddToCache(int key, const FilePath& path); }; |