| Index: content/common/content_paths.cc
|
| diff --git a/content/common/content_paths.cc b/content/common/content_paths.cc
|
| index 4e9b32beccc836049c487f403ea08f7e754b5be0..2664349aa4f40244f6b14a4b41350f948a42f097 100644
|
| --- a/content/common/content_paths.cc
|
| +++ b/content/common/content_paths.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "content/common/content_paths.h"
|
|
|
| +#include "base/file_util.h"
|
| #include "base/path_service.h"
|
|
|
| namespace content {
|
| @@ -12,8 +13,22 @@ bool PathProvider(int key, FilePath* result) {
|
| switch (key) {
|
| case CHILD_PROCESS_EXE:
|
| return PathService::Get(base::FILE_EXE, result);
|
| - default:
|
| + case DIR_TEST_DATA: {
|
| + FilePath cur;
|
| + if (!PathService::Get(base::DIR_SOURCE_ROOT, &cur))
|
| + return false;
|
| + cur = cur.Append(FILE_PATH_LITERAL("content"));
|
| + cur = cur.Append(FILE_PATH_LITERAL("test"));
|
| + cur = cur.Append(FILE_PATH_LITERAL("data"));
|
| + if (!file_util::PathExists(cur)) // we don't want to create this
|
| + return false;
|
| +
|
| + *result = cur;
|
| + return true;
|
| break;
|
| + }
|
| + default:
|
| + return false;
|
| }
|
|
|
| return false;
|
|
|