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

Unified Diff: content/browser/device_sensors/device_sensor_host.cc

Issue 2452083002: [Device Sensors] Remove BrowserThread knowledge (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 | « no previous file | content/browser/device_sensors/sensor_manager_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/device_sensors/device_sensor_host.cc
diff --git a/content/browser/device_sensors/device_sensor_host.cc b/content/browser/device_sensors/device_sensor_host.cc
index f3812ceec0bc2a7b55d10e4c3f3edab01db118eb..76096def5fbf1538416649e32cb2e7add8753a69 100644
--- a/content/browser/device_sensors/device_sensor_host.cc
+++ b/content/browser/device_sensors/device_sensor_host.cc
@@ -4,8 +4,8 @@
#include "content/browser/device_sensors/device_sensor_host.h"
+#include "base/message_loop/message_loop.h"
#include "content/browser/device_sensors/device_sensor_service.h"
-#include "content/public/browser/browser_thread.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
namespace content {
@@ -22,9 +22,9 @@ template <typename MojoInterface, ConsumerType consumer_type>
DeviceSensorHost<MojoInterface, consumer_type>::DeviceSensorHost()
: is_started_(false) {
#if defined(OS_ANDROID)
- DCHECK_CURRENTLY_ON(BrowserThread::UI);
+ DCHECK(base::MessageLoopForUI::IsCurrent());
#else
- DCHECK_CURRENTLY_ON(BrowserThread::IO);
+ DCHECK(base::MessageLoopForIO::IsCurrent());
#endif
}
« no previous file with comments | « no previous file | content/browser/device_sensors/sensor_manager_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698