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

Unified Diff: chrome/browser/chromeos/policy/device_quirks_policy_browsertest.cc

Issue 2315443004: Remove calls to deprecated MessageLoop methods in chrome. (Closed)
Patch Set: remove unused include Created 4 years, 3 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/chromeos/policy/device_quirks_policy_browsertest.cc
diff --git a/chrome/browser/chromeos/policy/device_quirks_policy_browsertest.cc b/chrome/browser/chromeos/policy/device_quirks_policy_browsertest.cc
index e7097e0538654232c2cedcf91dfce31d1be87f63..d3eb9dc583fd26938e37f65b8d4d6819d587201a 100644
--- a/chrome/browser/chromeos/policy/device_quirks_policy_browsertest.cc
+++ b/chrome/browser/chromeos/policy/device_quirks_policy_browsertest.cc
@@ -4,7 +4,7 @@
#include "base/files/file_util.h"
#include "base/macros.h"
-#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h"
#include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h"
#include "chrome/browser/chromeos/settings/cros_settings.h"
@@ -48,13 +48,13 @@ class DeviceQuirksPolicyTest : public policy::DevicePolicyCrosBrowserTest {
protected:
void RefreshPolicyAndWaitDeviceSettingsUpdated() {
+ base::RunLoop run_loop;
std::unique_ptr<CrosSettings::ObserverSubscription> observer =
CrosSettings::Get()->AddSettingsObserver(
- kDeviceQuirksDownloadEnabled,
- base::MessageLoop::current()->QuitWhenIdleClosure());
+ kDeviceQuirksDownloadEnabled, run_loop.QuitWhenIdleClosure());
RefreshDevicePolicy();
- base::MessageLoop::current()->Run();
+ run_loop.Run();
}
// Query QuirksManager for icc file, then run msg loop to wait for callback.

Powered by Google App Engine
This is Rietveld 408576698