| Index: chrome/browser/prefs/pref_service_unittest.cc
|
| diff --git a/chrome/browser/prefs/pref_service_unittest.cc b/chrome/browser/prefs/pref_service_unittest.cc
|
| index 782740bcbbf1b9da2ca7818c6add4c6dfe695486..e5d58b7c4af012d75bb64e89155029757813e29c 100644
|
| --- a/chrome/browser/prefs/pref_service_unittest.cc
|
| +++ b/chrome/browser/prefs/pref_service_unittest.cc
|
| @@ -301,7 +301,7 @@ class PrefServiceUserFilePrefsTest : public testing::Test {
|
| ScopedTempDir temp_dir_;
|
| // The path to the directory where the test data is stored.
|
| FilePath data_dir_;
|
| - // A message loop that we can use as the file thread message loop.
|
| + // A message loop that we need for firing timers.
|
| MessageLoop message_loop_;
|
| };
|
|
|
| @@ -315,7 +315,7 @@ TEST_F(PrefServiceUserFilePrefsTest, PreserveEmptyValue) {
|
| pref_file));
|
|
|
| PrefServiceMockBuilder builder;
|
| - builder.WithUserFilePrefs(pref_file, base::MessageLoopProxy::current());
|
| + builder.WithUserFilePrefs(pref_file, message_loop_.message_loop_proxy());
|
| scoped_ptr<PrefService> prefs(builder.Create());
|
|
|
| // Register testing prefs.
|
| @@ -344,7 +344,7 @@ TEST_F(PrefServiceUserFilePrefsTest, PreserveEmptyValue) {
|
|
|
| // Write to file.
|
| prefs->CommitPendingWrite();
|
| - MessageLoop::current()->RunAllPending();
|
| + message_loop_.RunAllPending();
|
|
|
| // Compare to expected output.
|
| FilePath golden_output_file =
|
|
|