summaryrefslogtreecommitdiffstats
path: root/base/path_service.h
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-26 13:20:36 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-26 13:20:36 +0000
commit826ab452f481fdad072acd27d99bf24520796074 (patch)
treefe8686a93575d657fc7d0a59f26449a08dfd9a06 /base/path_service.h
parent4147a679bf1a9f7ef0fac0fffc133219a26d8b6e (diff)
downloadchromium_src-826ab452f481fdad072acd27d99bf24520796074.zip
chromium_src-826ab452f481fdad072acd27d99bf24520796074.tar.gz
chromium_src-826ab452f481fdad072acd27d99bf24520796074.tar.bz2
Add a comment regarding base::PathService::Override usage.
Review URL: https://codereview.chromium.org/178553003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253429 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/path_service.h')
-rw-r--r--base/path_service.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/path_service.h b/base/path_service.h
index 832b92b..9759754 100644
--- a/base/path_service.h
+++ b/base/path_service.h
@@ -41,6 +41,9 @@ class BASE_EXPORT PathService {
//
// WARNING: Consumers of PathService::Get may expect paths to be constant
// over the lifetime of the app, so this method should be used with caution.
+ //
+ // Unit tests generally should use ScopedPathOverride instead. Overrides from
+ // one test should not carry over to another.
static bool Override(int key, const base::FilePath& path);
// This function does the same as PathService::Override but it takes an extra