From d8996a01181eb26ccab90095d4bc6287052e1068 Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Mon, 19 Nov 2012 00:06:08 +0000 Subject: chrome: Update the remaining calls from RunAllPending() to RunUntilIdle(). RunAllPending() is deprecated and we should switch to RunUntilIdle(). BUG=131220 TBR=ben@chromium.org Review URL: https://codereview.chromium.org/11299062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168481 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/tools/profiles/generate_profile.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/tools') diff --git a/chrome/tools/profiles/generate_profile.cc b/chrome/tools/profiles/generate_profile.cc index 08f0170..ca4ee3e 100644 --- a/chrome/tools/profiles/generate_profile.cc +++ b/chrome/tools/profiles/generate_profile.cc @@ -257,7 +257,7 @@ int main(int argc, const char* argv[]) { const int batch_size = std::min(kBatchSize, url_count - page_id); InsertURLBatch(&profile, page_id, batch_size, types); // Run all pending messages to give TopSites a chance to catch up. - message_loop.RunAllPending(); + message_loop.RunUntilIdle(); page_id += batch_size; } @@ -266,7 +266,7 @@ int main(int argc, const char* argv[]) { profile.DestroyTopSites(); profile.DestroyHistoryService(); - message_loop.RunAllPending(); + message_loop.RunUntilIdle(); file_util::FileEnumerator file_iterator(profile.GetPath(), false, file_util::FileEnumerator::FILES); -- cgit v1.1