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

Unified Diff: device/wake_lock/wake_lock_service_context.cc

Issue 2921823002: Rationalize WakeLock naming conventions (Closed)
Patch Set: rebase Created 3 years, 6 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 | « device/wake_lock/wake_lock_service_context.h ('k') | device/wake_lock/wake_lock_service_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/wake_lock/wake_lock_service_context.cc
diff --git a/device/wake_lock/wake_lock_service_context.cc b/device/wake_lock/wake_lock_service_context.cc
deleted file mode 100644
index 682a4f934cd20665911dc3349286d8a2fffcd88a..0000000000000000000000000000000000000000
--- a/device/wake_lock/wake_lock_service_context.cc
+++ /dev/null
@@ -1,35 +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 "device/wake_lock/wake_lock_service_context.h"
-
-#include <utility>
-
-#include "device/wake_lock/wake_lock_service_impl.h"
-
-namespace device {
-
-const int WakeLockServiceContext::WakeLockInvalidContextId = -1;
-
-WakeLockServiceContext::WakeLockServiceContext(
- int context_id,
- scoped_refptr<base::SingleThreadTaskRunner> file_task_runner,
- const WakeLockContextCallback& native_view_getter)
- : file_task_runner_(std::move(file_task_runner)),
- context_id_(context_id),
- native_view_getter_(native_view_getter) {}
-
-WakeLockServiceContext::~WakeLockServiceContext() {}
-
-void WakeLockServiceContext::GetWakeLock(
- mojom::WakeLockType type,
- mojom::WakeLockReason reason,
- const std::string& description,
- mojom::WakeLockServiceRequest request) {
- // WakeLockServiceImpl owns itself.
- new WakeLockServiceImpl(std::move(request), type, reason, description,
- context_id_, native_view_getter_, file_task_runner_);
-}
-
-} // namespace device
« no previous file with comments | « device/wake_lock/wake_lock_service_context.h ('k') | device/wake_lock/wake_lock_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698