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

Unified Diff: content/browser/sensors/sensors_provider_impl.cc

Issue 10115024: sensors: Remove prototype implementation (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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/browser/sensors/sensors_provider_impl.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/sensors/sensors_provider_impl.cc
diff --git a/content/browser/sensors/sensors_provider_impl.cc b/content/browser/sensors/sensors_provider_impl.cc
deleted file mode 100644
index a2edd0d53aff032b1495e6a844805767811c9aac..0000000000000000000000000000000000000000
--- a/content/browser/sensors/sensors_provider_impl.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2012 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/browser/sensors/sensors_provider_impl.h"
-
-#include "base/memory/singleton.h"
-#include "content/public/browser/sensors_listener.h"
-
-namespace content {
-
-// static
-SensorsProvider* SensorsProvider::GetInstance() {
- return SensorsProviderImpl::GetInstance();
-}
-
-// static
-SensorsProviderImpl* SensorsProviderImpl::GetInstance() {
- return Singleton<SensorsProviderImpl>::get();
-}
-
-void SensorsProviderImpl::AddListener(SensorsListener* listener) {
- listeners_->AddObserver(listener);
-}
-
-void SensorsProviderImpl::RemoveListener(SensorsListener* listener) {
- listeners_->RemoveObserver(listener);
-}
-
-void SensorsProviderImpl::ScreenOrientationChanged(ScreenOrientation change) {
- listeners_->Notify(&SensorsListener::OnScreenOrientationChanged, change);
-}
-
-SensorsProviderImpl::SensorsProviderImpl()
- : listeners_(new ListenerList()) {
-}
-
-SensorsProviderImpl::~SensorsProviderImpl() {
-}
-
-} // namespace content
« no previous file with comments | « content/browser/sensors/sensors_provider_impl.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698