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

Unified Diff: third_party/WebKit/Source/modules/geofencing/WorkerNavigatorGeofencing.cpp

Issue 1972733002: Delete geofencing implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark histogram suffix as obsolete Created 4 years, 7 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: third_party/WebKit/Source/modules/geofencing/WorkerNavigatorGeofencing.cpp
diff --git a/third_party/WebKit/Source/modules/geofencing/WorkerNavigatorGeofencing.cpp b/third_party/WebKit/Source/modules/geofencing/WorkerNavigatorGeofencing.cpp
deleted file mode 100644
index 6fb17a2a18e29ee9d7848c46f9ff90bbdff752db..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/modules/geofencing/WorkerNavigatorGeofencing.cpp
+++ /dev/null
@@ -1,53 +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 "modules/geofencing/WorkerNavigatorGeofencing.h"
-
-#include "core/workers/WorkerNavigator.h"
-#include "modules/geofencing/Geofencing.h"
-
-namespace blink {
-
-WorkerNavigatorGeofencing::WorkerNavigatorGeofencing()
-{
-}
-
-WorkerNavigatorGeofencing::~WorkerNavigatorGeofencing()
-{
-}
-
-const char* WorkerNavigatorGeofencing::supplementName()
-{
- return "WorkerNavigatorGeofencing";
-}
-
-WorkerNavigatorGeofencing& WorkerNavigatorGeofencing::from(WorkerNavigator& navigator)
-{
- WorkerNavigatorGeofencing* supplement = static_cast<WorkerNavigatorGeofencing*>(Supplement<WorkerNavigator>::from(navigator, supplementName()));
- if (!supplement) {
- supplement = new WorkerNavigatorGeofencing();
- provideTo(navigator, supplementName(), supplement);
- }
- return *supplement;
-}
-
-Geofencing* WorkerNavigatorGeofencing::geofencing(WorkerNavigator& navigator)
-{
- return WorkerNavigatorGeofencing::from(navigator).geofencing();
-}
-
-Geofencing* WorkerNavigatorGeofencing::geofencing()
-{
- if (!m_geofencing)
- m_geofencing = Geofencing::create(nullptr);
- return m_geofencing.get();
-}
-
-DEFINE_TRACE(WorkerNavigatorGeofencing)
-{
- visitor->trace(m_geofencing);
- Supplement<WorkerNavigator>::trace(visitor);
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698