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

Unified Diff: content/renderer/wake_lock/wake_lock_dispatcher.cc

Issue 1345563002: Revert of Wake Lock API implementation (Chromium part) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « content/renderer/wake_lock/wake_lock_dispatcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/wake_lock/wake_lock_dispatcher.cc
diff --git a/content/renderer/wake_lock/wake_lock_dispatcher.cc b/content/renderer/wake_lock/wake_lock_dispatcher.cc
deleted file mode 100644
index 2607352469c28756789f98e69dd4d4c13612a8ba..0000000000000000000000000000000000000000
--- a/content/renderer/wake_lock/wake_lock_dispatcher.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/renderer/wake_lock/wake_lock_dispatcher.h"
-
-#include "content/public/common/service_registry.h"
-#include "content/public/renderer/render_frame.h"
-
-namespace content {
-
-WakeLockDispatcher::WakeLockDispatcher(RenderFrame* render_frame)
- : RenderFrameObserver(render_frame),
- blink::WebWakeLockClient() {
-}
-
-WakeLockDispatcher::~WakeLockDispatcher() {
-}
-
-void WakeLockDispatcher::requestKeepScreenAwake(bool keepScreenAwake) {
- if (!wake_lock_service_) {
- render_frame()->GetServiceRegistry()->ConnectToRemoteService(
- mojo::GetProxy(&wake_lock_service_));
- }
-
- if (keepScreenAwake) {
- wake_lock_service_->RequestWakeLock();
- } else {
- wake_lock_service_->CancelWakeLock();
- }
-}
-
-} // namespace content
« no previous file with comments | « content/renderer/wake_lock/wake_lock_dispatcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698