Index: content/browser/gamepad/gamepad_provider.cc |
diff --git a/content/browser/gamepad/gamepad_provider.cc b/content/browser/gamepad/gamepad_provider.cc |
index 8e7644ef46ec4c40fa1729c59a631a79bfb7f1c1..16976d965385f4d7ba005e1779d6a6d36e132b64 100644 |
--- a/content/browser/gamepad/gamepad_provider.cc |
+++ b/content/browser/gamepad/gamepad_provider.cc |
@@ -131,6 +131,10 @@ void GamepadProvider::Initialize(scoped_ptr<GamepadDataFetcher> fetcher) { |
// On Linux, the data fetcher needs to watch file descriptors, so the message |
// loop needs to be a libevent loop. |
const base::MessageLoop::Type kMessageLoopType = base::MessageLoop::TYPE_IO; |
+#elif defined(OS_ANDROID) |
+ // On Android, keeping a message loop of default type. |
+ const base::MessageLoop::Type kMessageLoopType = |
+ base::MessageLoop::TYPE_DEFAULT; |
#else |
// On Mac, the data fetcher uses IOKit which depends on CFRunLoop, so the |
// message loop needs to be a UI-type loop. On Windows it must be a UI loop |