apmanager: Update libchrome APIs to r369476

The new libchrome has been ported from Chromium and some APIs have
changed. Make necessary changes at call sites.

(cherry picked from commit 33a54245a627a89089cd470b2564d04dbe9833ff)

Change-Id: Ie449b7b706bfcef332a4306e93d7d1b1bd5ccf52
diff --git a/event_dispatcher.cc b/event_dispatcher.cc
index bd36d4a..5e7d831 100644
--- a/event_dispatcher.cc
+++ b/event_dispatcher.cc
@@ -17,7 +17,7 @@
 #include "apmanager/event_dispatcher.h"
 
 #include <base/location.h>
-#include <base/message_loop/message_loop_proxy.h>
+#include <base/message_loop/message_loop.h>
 #include <base/time/time.h>
 
 namespace apmanager {
@@ -37,13 +37,19 @@
 }
 
 bool EventDispatcher::PostTask(const base::Closure& task) {
-  return base::MessageLoopProxy::current()->PostTask(FROM_HERE, task);
+  if (!base::MessageLoop::current())
+    return false;
+  base::MessageLoop::current()->PostTask(FROM_HERE, task);
+  return true;
 }
 
 bool EventDispatcher::PostDelayedTask(const base::Closure& task,
                                       int64_t delay_ms) {
-  return base::MessageLoopProxy::current()->PostDelayedTask(
+  if (!base::MessageLoop::current())
+    return false;
+  base::MessageLoop::current()->PostDelayedTask(
       FROM_HERE, task, base::TimeDelta::FromMilliseconds(delay_ms));
+  return true;
 }
 
 }  // namespace apmanager