diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-09 20:04:14 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-09 20:04:14 +0000 |
commit | a877d06fc0cba436f6452b74233269ecf4059c75 (patch) | |
tree | b43c9bd3673707eec46a3fab0e55ce12691c0263 /base/path_service.h | |
parent | 24287ab52e13898447a882b34f369bf2a05ebc8a (diff) | |
download | chromium_src-a877d06fc0cba436f6452b74233269ecf4059c75.zip chromium_src-a877d06fc0cba436f6452b74233269ecf4059c75.tar.gz chromium_src-a877d06fc0cba436f6452b74233269ecf4059c75.tar.bz2 |
Fix CheckFalseTest.CheckFails on Linux after my change to ui_test.
This makes PathService clear its cache after overriding a path.
We have many paths depending on each other, so this is necessary
to avoid inconsistencies.
Added a comment that PathService::Override should not be called
by production code.
TEST=ui_tests in Release mode
BUG=49838
Review URL: http://codereview.chromium.org/2805100
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55450 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/path_service.h')
-rw-r--r-- | base/path_service.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/base/path_service.h b/base/path_service.h index 2b59247..4d99cdc 100644 --- a/base/path_service.h +++ b/base/path_service.h @@ -45,9 +45,6 @@ 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. @@ -65,6 +62,7 @@ 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); }; |