Index: content/browser/frame_host/render_frame_host_impl.cc |
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc |
index 2d40bd9ba10143784b5167316cb41311f1d05fef..a04779a089a83550d8d2f3cd01fdcd001130680a 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.cc |
+++ b/content/browser/frame_host/render_frame_host_impl.cc |
@@ -41,7 +41,6 @@ |
#include "content/browser/renderer_host/render_view_host_impl.h" |
#include "content/browser/renderer_host/render_widget_host_impl.h" |
#include "content/browser/renderer_host/render_widget_host_view_base.h" |
-#include "content/browser/wake_lock/wake_lock_service_context.h" |
#include "content/common/accessibility_messages.h" |
#include "content/common/frame_messages.h" |
#include "content/common/input_messages.h" |
@@ -1582,20 +1581,6 @@ |
base::Unretained(this)))); |
} |
- WakeLockServiceContext* wake_lock_service_context = |
- delegate_ ? delegate_->GetWakeLockServiceContext() : nullptr; |
- if (wake_lock_service_context) { |
- int frame_id = frame_tree_node()->frame_tree_node_id(); |
- |
- // WakeLockServiceContext is owned by WebContentsImpl so it will outlive |
- // this RenderFrameHostImpl, hence a raw pointer can be bound to service |
- // factory callback. |
- GetServiceRegistry()->AddService<WakeLockService>( |
- base::Bind(&WakeLockServiceContext::CreateService, |
- base::Unretained(wake_lock_service_context), |
- frame_id)); |
- } |
- |
if (!permission_service_context_) |
permission_service_context_.reset(new PermissionServiceContext(this)); |