Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Unified Diff: content/test/appcache_test_helper.cc

Issue 2082343002: Remove calls to deprecated MessageLoop methods in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/renderer_main.cc ('k') | content/utility/utility_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/appcache_test_helper.cc
diff --git a/content/test/appcache_test_helper.cc b/content/test/appcache_test_helper.cc
index 252d801389848c38a43f7dbf622b55f080182d77..32421b669b72f6e306773839a4d8583565f238fd 100644
--- a/content/test/appcache_test_helper.cc
+++ b/content/test/appcache_test_helper.cc
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "content/browser/appcache/appcache.h"
#include "content/browser/appcache/appcache_entry.h"
#include "content/browser/appcache/appcache_group.h"
@@ -49,7 +50,7 @@ void AppCacheTestHelper::AddGroupAndCache(AppCacheServiceImpl*
appcache,
this);
// OnGroupAndNewestCacheStored will quit the message loop.
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
void AppCacheTestHelper::GetOriginsWithCaches(AppCacheServiceImpl*
@@ -62,7 +63,7 @@ void AppCacheTestHelper::GetOriginsWithCaches(AppCacheServiceImpl*
base::Unretained(this)));
// OnGotAppCacheInfo will quit the message loop.
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
void AppCacheTestHelper::OnGotAppCacheInfo(int rv) {
« no previous file with comments | « content/renderer/renderer_main.cc ('k') | content/utility/utility_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698