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

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

Issue 2460823002: Decouple Power Monitor from //content. (Closed)
Patch Set: Decouple Power Monitor from //content. Created 4 years, 2 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 8646cc48d900ccecd4baf34320e918edc44c6857..d2823f2f476b8cdc80ab87c6ea70ff2345b895bb 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -90,7 +90,6 @@
#include "content/browser/notifications/platform_notification_context_impl.h"
#include "content/browser/permissions/permission_service_context.h"
#include "content/browser/permissions/permission_service_impl.h"
-#include "content/browser/power_monitor_message_broadcaster.h"
#include "content/browser/profiler_message_filter.h"
#include "content/browser/push_messaging/push_messaging_message_filter.h"
#include "content/browser/quota_dispatcher_host.h"
@@ -162,6 +161,7 @@
#include "content/public/common/service_names.h"
#include "content/public/common/url_constants.h"
#include "device/battery/battery_monitor_impl.h"
+#include "device/power_monitor/power_monitor_message_broadcaster.h"
#include "device/time_zone_monitor/time_zone_monitor.h"
#include "gpu/GLES2/gl2extchromium.h"
#include "gpu/command_buffer/client/gpu_switches.h"
@@ -1253,8 +1253,9 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() {
base::Unretained(
BrowserMainLoop::GetInstance()->time_zone_monitor())));
- AddUIThreadInterface(registry.get(),
- base::Bind(&PowerMonitorMessageBroadcaster::Create));
+ AddUIThreadInterface(
+ registry.get(),
+ base::Bind(&device::PowerMonitorMessageBroadcaster::Create));
scoped_refptr<base::SingleThreadTaskRunner> file_task_runner =
BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE);

Powered by Google App Engine
This is Rietveld 408576698