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

Unified Diff: content/renderer/battery_status/fake_battery_status_dispatcher.cc

Issue 446603002: Refactor code listening to platform events in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webkitplatform_impl_start_stop
Patch Set: rebase Created 6 years, 4 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/renderer/battery_status/fake_battery_status_dispatcher.cc
diff --git a/content/renderer/battery_status/fake_battery_status_dispatcher.cc b/content/renderer/battery_status/fake_battery_status_dispatcher.cc
deleted file mode 100644
index 735df5a28490023d12d6f14788c4c872691a6a39..0000000000000000000000000000000000000000
--- a/content/renderer/battery_status/fake_battery_status_dispatcher.cc
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2014 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 "fake_battery_status_dispatcher.h"
-
-#include "base/bind.h"
-#include "base/location.h"
-#include "base/message_loop/message_loop_proxy.h"
-#include "third_party/WebKit/public/platform/WebBatteryStatusListener.h"
-
-namespace content {
-
-FakeBatteryStatusDispatcher::FakeBatteryStatusDispatcher() : listener_(0) {
-}
-
-void FakeBatteryStatusDispatcher::SetListener(
- blink::WebBatteryStatusListener* listener) {
- listener_ = listener;
-}
-
-void FakeBatteryStatusDispatcher::PostBatteryStatusChange(
- const blink::WebBatteryStatus& status) {
- if (listener_)
- listener_->updateBatteryStatus(status);
-}
-
-} // namespace content

Powered by Google App Engine
This is Rietveld 408576698