| Index: base/test/scoped_path_override.cc
|
| diff --git a/base/test/scoped_path_override.cc b/base/test/scoped_path_override.cc
|
| index 495ba2fbaf788518fb05aad7454eb6e20947938b..9a776118d20e699ce8d4ef1cb345867d6ae18014 100644
|
| --- a/base/test/scoped_path_override.cc
|
| +++ b/base/test/scoped_path_override.cc
|
| @@ -22,6 +22,16 @@ ScopedPathOverride::ScopedPathOverride(int key, const base::FilePath& dir)
|
| CHECK(result);
|
| }
|
|
|
| +ScopedPathOverride::ScopedPathOverride(int key,
|
| + const FilePath& path,
|
| + bool is_absolute,
|
| + bool create)
|
| + : key_(key) {
|
| + bool result =
|
| + PathService::OverrideAndCreateIfNeeded(key, path, is_absolute, create);
|
| + CHECK(result);
|
| +}
|
| +
|
| ScopedPathOverride::~ScopedPathOverride() {
|
| bool result = PathService::RemoveOverride(key_);
|
| CHECK(result) << "The override seems to have been removed already!";
|
|
|