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

Unified Diff: base/path_service.h

Issue 10909228: Add PathService::RemoveOverride to clear path overrides. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Refactored the locking semantics. Created 8 years, 3 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') | base/path_service.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 e835a1f34e6b4ddd3c4f313145c30c5cc04ad0fb..a39c688a5b3e656fea026c7c50906b8c3980d606 100644
--- a/base/path_service.h
+++ b/base/path_service.h
@@ -46,6 +46,10 @@ class BASE_EXPORT PathService {
const FilePath& path,
bool create);
+ // Removes an override for a special directory or file. Returns true if there
+ // was an override to remove or false if none was present.
+ static bool RemoveOverride(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.
@@ -61,10 +65,6 @@ class BASE_EXPORT PathService {
static void RegisterProvider(ProviderFunc provider,
int key_start,
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);
};
#endif // BASE_PATH_SERVICE_H_
« no previous file with comments | « no previous file | base/path_service.cc » ('j') | base/path_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698