| Index: chrome/test/reliability/page_load_test.cc
|
| diff --git a/chrome/test/reliability/page_load_test.cc b/chrome/test/reliability/page_load_test.cc
|
| index 571c16a99875fd88ef603159c404465fee01145e..fa06d562356909475f93eef5902e62e37f0c9b23 100644
|
| --- a/chrome/test/reliability/page_load_test.cc
|
| +++ b/chrome/test/reliability/page_load_test.cc
|
| @@ -50,6 +50,7 @@
|
| #include "chrome/browser/browser_thread.h"
|
| #include "chrome/browser/net/url_fixer_upper.h"
|
| #include "chrome/browser/prefs/pref_service.h"
|
| +#include "chrome/browser/prefs/pref_service_mock_builder.h"
|
| #include "chrome/common/automation_messages.h"
|
| #include "chrome/common/chrome_constants.h"
|
| #include "chrome/common/chrome_paths.h"
|
| @@ -63,8 +64,8 @@
|
| #include "chrome/test/automation/browser_proxy.h"
|
| #include "chrome/test/automation/tab_proxy.h"
|
| #include "chrome/test/automation/window_proxy.h"
|
| -#include "chrome/test/ui/ui_test.h"
|
| #include "chrome/test/reliability/page_load_test.h"
|
| +#include "chrome/test/ui/ui_test.h"
|
| #include "net/base/net_util.h"
|
|
|
| namespace {
|
| @@ -532,12 +533,8 @@ class PageLoadTest : public UITest {
|
| // that was saved by the app as it closed. The caller takes ownership of the
|
| // returned PrefService object.
|
| PrefService* GetLocalState() {
|
| - FilePath local_state_path = user_data_dir()
|
| - .Append(chrome::kLocalStateFilename);
|
| -
|
| - PrefService* local_state = PrefService::CreateUserPrefService(
|
| - local_state_path);
|
| - return local_state;
|
| + FilePath path = user_data_dir().Append(chrome::kLocalStateFilename);
|
| + return PrefServiceMockBuilder().WithUserFilePrefs(path).Create();
|
| }
|
|
|
| void GetStabilityMetrics(NavigationMetrics* metrics) {
|
|
|