summaryrefslogtreecommitdiffstats
path: root/base/path_service.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-23 22:39:30 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-23 22:39:30 +0000
commitd8a80d6e6d787b0f924e54993fd3bb700ea220fb (patch)
tree73cd31322e244b11fca6e3ffebf76c5eae054ae5 /base/path_service.cc
parentbbee17e594c08a4baf9379cdb22b4961a113434f (diff)
downloadchromium_src-d8a80d6e6d787b0f924e54993fd3bb700ea220fb.zip
chromium_src-d8a80d6e6d787b0f924e54993fd3bb700ea220fb.tar.gz
chromium_src-d8a80d6e6d787b0f924e54993fd3bb700ea220fb.tar.bz2
Revert "chrome_paths: refactor and sanitize cache directory handling"
This reverts commit r67160, test failures. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67171 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/path_service.cc')
-rw-r--r--base/path_service.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/base/path_service.cc b/base/path_service.cc
index 8660c42..9eed56d 100644
--- a/base/path_service.cc
+++ b/base/path_service.cc
@@ -215,6 +215,14 @@ bool PathService::Get(int key, std::wstring* result) {
}
#endif
+// TODO(evan): remove me -- see comments in header.
+bool PathService::IsOverridden(int key) {
+ PathData* path_data = GetPathData();
+ DCHECK(path_data);
+ AutoLock scoped_lock(path_data->lock);
+ return path_data->overrides.find(key) != path_data->overrides.end();
+}
+
bool PathService::Override(int key, const FilePath& path) {
PathData* path_data = GetPathData();
DCHECK(path_data);