summaryrefslogtreecommitdiffstats
path: root/base/prefs
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-06 16:56:19 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-06 16:56:19 +0000
commit7ff48ca7c36e03a70d42838b57d7576fd6866fd3 (patch)
treea4094090054ef5954b381625c6116b5cf9ad49d1 /base/prefs
parent3eb2899b90415acb389db29933f1bfe249f6355d (diff)
downloadchromium_src-7ff48ca7c36e03a70d42838b57d7576fd6866fd3.zip
chromium_src-7ff48ca7c36e03a70d42838b57d7576fd6866fd3.tar.gz
chromium_src-7ff48ca7c36e03a70d42838b57d7576fd6866fd3.tar.bz2
base: Convert the remaining uses of MessageLoop::RunUntilIdle to RunLoop variant.
The former method is deprecated and actually it is just using RunLoop internally. The later is the cannonical method and should be used instead. BUG=131220 TEST=base_unittests R=darin@chromium.org Review URL: https://chromiumcodereview.appspot.com/12226007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180991 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/prefs')
-rw-r--r--base/prefs/json_pref_store_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/prefs/json_pref_store_unittest.cc b/base/prefs/json_pref_store_unittest.cc
index b44d9e5..f932988 100644
--- a/base/prefs/json_pref_store_unittest.cc
+++ b/base/prefs/json_pref_store_unittest.cc
@@ -207,7 +207,7 @@ TEST_F(JsonPrefStoreTest, BasicAsync) {
EXPECT_CALL(mock_observer, OnInitializationCompleted(true)).Times(1);
EXPECT_CALL(*mock_error_delegate,
OnError(PersistentPrefStore::PREF_READ_ERROR_NONE)).Times(0);
- message_loop_.RunUntilIdle();
+ RunLoop().RunUntilIdle();
pref_store->RemoveObserver(&mock_observer);
ASSERT_FALSE(pref_store->ReadOnly());
@@ -244,7 +244,7 @@ TEST_F(JsonPrefStoreTest, AsyncNonExistingFile) {
EXPECT_CALL(mock_observer, OnInitializationCompleted(true)).Times(1);
EXPECT_CALL(*mock_error_delegate,
OnError(PersistentPrefStore::PREF_READ_ERROR_NO_FILE)).Times(1);
- message_loop_.RunUntilIdle();
+ RunLoop().RunUntilIdle();
pref_store->RemoveObserver(&mock_observer);
EXPECT_FALSE(pref_store->ReadOnly());