Index: chrome_frame/test/reliability/page_load_test.cc |
diff --git a/chrome_frame/test/reliability/page_load_test.cc b/chrome_frame/test/reliability/page_load_test.cc |
index 666b967f1db06b8b86c1a0159ca92bbb0128e60a..f93898c4bdf2d21c8ffba47db304ef329fd52697 100644 |
--- a/chrome_frame/test/reliability/page_load_test.cc |
+++ b/chrome_frame/test/reliability/page_load_test.cc |
@@ -38,7 +38,7 @@ |
#include "base/strings/utf_string_conversions.h" |
#include "base/test/test_file_util.h" |
#include "base/time/time.h" |
-#include "chrome/browser/prefs/pref_service_mock_builder.h" |
+#include "chrome/browser/prefs/pref_service_mock_factory.h" |
#include "chrome/common/automation_messages.h" |
#include "chrome/common/chrome_constants.h" |
#include "chrome/common/chrome_paths.h" |
@@ -434,12 +434,12 @@ class PageLoadTest : public testing::Test { |
PrefService* GetLocalState(PrefRegistry* registry) { |
base::FilePath path; |
chrome::GetChromeFrameUserDataDirectory(&path); |
- PrefServiceMockBuilder builder; |
- builder.WithUserFilePrefs( |
+ PrefServiceMockFactory factory; |
+ factory.SetUserPrefsFile( |
path, |
JsonPrefStore::GetTaskRunnerForFile( |
path, content::BrowserThread::GetBlockingPool())); |
- return builder.Create(registry); |
+ return factory.Create(registry).release(); |
} |
void GetStabilityMetrics(NavigationMetrics* metrics) { |