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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 10024013: chromeos: Add support for the battery status API on chromeos. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DEPS Created 8 years, 8 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: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 8454ae387d131789e7e0dc4b194921328f4c5b31..452b758741f06e10c6538e6d51e26c746147bc38 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -118,6 +118,10 @@
#include "content/browser/speech/input_tag_speech_dispatcher_host.h"
#endif
+#if defined(OS_CHROMEOS)
+#include "content/browser/battery_status/battery_status_message_filter.h"
+#endif
+
#include "third_party/skia/include/core/SkBitmap.h"
using content::BrowserContext;
@@ -522,6 +526,10 @@ void RenderProcessHostImpl::CreateMessageFilters() {
channel_->AddFilter(new FontCacheDispatcher());
#endif
+#if defined(OS_CHROMEOS)
+ channel_->AddFilter(new BatteryStatusMessageFilter());
+#endif
+
SocketStreamDispatcherHost* socket_stream_dispatcher_host =
new SocketStreamDispatcherHost(GetID(),
new RendererURLRequestContextSelector(browser_context, GetID()),

Powered by Google App Engine
This is Rietveld 408576698