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

Unified Diff: chrome/browser/browsing_data/browsing_data_helper_browsertest.h

Issue 2132593002: Remove remaining calls to deprecated MessageLoop methods on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: h264_vt_encoder_unittest.cc Created 4 years, 5 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
Index: chrome/browser/browsing_data/browsing_data_helper_browsertest.h
diff --git a/chrome/browser/browsing_data/browsing_data_helper_browsertest.h b/chrome/browser/browsing_data/browsing_data_helper_browsertest.h
index f93cec2ddb04ddebd3156d3cb6fe3c1e63b06fbf..bd8b7dc2f4621c39b69e1b782b7ab9446653aaaf 100644
--- a/chrome/browser/browsing_data/browsing_data_helper_browsertest.h
+++ b/chrome/browser/browsing_data/browsing_data_helper_browsertest.h
@@ -11,7 +11,7 @@
#include "base/logging.h"
#include "base/macros.h"
-#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
// This template can be used for the StartFetching methods of the browsing data
// helper classes. It is supposed to be instantiated with the respective
@@ -22,7 +22,7 @@ class BrowsingDataHelperCallback {
BrowsingDataHelperCallback() {}
const std::list<T>& result() {
- base::MessageLoop::current()->Run();
+ run_loop_.Run();
DCHECK(has_result_);
return result_;
}
@@ -30,10 +30,11 @@ class BrowsingDataHelperCallback {
void callback(const std::list<T>& info) {
result_ = info;
has_result_ = true;
- base::MessageLoop::current()->QuitWhenIdle();
+ run_loop_.QuitWhenIdle();
}
private:
+ base::RunLoop run_loop_;
bool has_result_ = false;
std::list<T> result_;
« no previous file with comments | « chrome/app_shim/chrome_main_app_mode_mac.mm ('k') | chrome/browser/devtools/device/port_forwarding_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698