summaryrefslogtreecommitdiffstats
path: root/chrome/browser/metrics/metrics_service_uitest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/metrics/metrics_service_uitest.cc')
-rw-r--r--chrome/browser/metrics/metrics_service_uitest.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/metrics/metrics_service_uitest.cc b/chrome/browser/metrics/metrics_service_uitest.cc
index a943c68..05c1b8d 100644
--- a/chrome/browser/metrics/metrics_service_uitest.cc
+++ b/chrome/browser/metrics/metrics_service_uitest.cc
@@ -11,10 +11,11 @@
#include "base/file_util.h"
#include "base/path_service.h"
#include "base/platform_thread.h"
-#include "chrome/browser/json_pref_store.h"
+#include "chrome/browser/chrome_thread.h"
#include "chrome/browser/pref_service.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
+#include "chrome/common/json_pref_store.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
#include "chrome/test/automation/tab_proxy.h"
@@ -52,7 +53,10 @@ class MetricsServiceTest : public UITest {
FilePath local_state_path = user_data_dir()
.Append(chrome::kLocalStateFilename);
- return new PrefService(new JsonPrefStore(local_state_path));
+ return new PrefService(
+ new JsonPrefStore(
+ local_state_path,
+ ChromeThread::GetMessageLoopProxyForThread(ChromeThread::FILE)));
}
};