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

Unified Diff: third_party/WebKit/Source/modules/geofencing/ServiceWorkerRegistrationGeofencing.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/ServiceWorkerRegistrationGeofencing.cpp
diff --git a/third_party/WebKit/Source/modules/geofencing/ServiceWorkerRegistrationGeofencing.cpp b/third_party/WebKit/Source/modules/geofencing/ServiceWorkerRegistrationGeofencing.cpp
deleted file mode 100644
index 2be5af12e2eada73a7264ff3ee22aee4b910ea51..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/modules/geofencing/ServiceWorkerRegistrationGeofencing.cpp
+++ /dev/null
@@ -1,55 +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/ServiceWorkerRegistrationGeofencing.h"
-
-#include "modules/geofencing/Geofencing.h"
-#include "modules/serviceworkers/ServiceWorkerRegistration.h"
-
-namespace blink {
-
-ServiceWorkerRegistrationGeofencing::ServiceWorkerRegistrationGeofencing(ServiceWorkerRegistration* registration)
- : m_registration(registration)
-{
-}
-
-ServiceWorkerRegistrationGeofencing::~ServiceWorkerRegistrationGeofencing()
-{
-}
-
-const char* ServiceWorkerRegistrationGeofencing::supplementName()
-{
- return "ServiceWorkerRegistrationGeofencing";
-}
-
-ServiceWorkerRegistrationGeofencing& ServiceWorkerRegistrationGeofencing::from(ServiceWorkerRegistration& registration)
-{
- ServiceWorkerRegistrationGeofencing* supplement = static_cast<ServiceWorkerRegistrationGeofencing*>(Supplement<ServiceWorkerRegistration>::from(registration, supplementName()));
- if (!supplement) {
- supplement = new ServiceWorkerRegistrationGeofencing(&registration);
- provideTo(registration, supplementName(), supplement);
- }
- return *supplement;
-}
-
-Geofencing* ServiceWorkerRegistrationGeofencing::geofencing(ServiceWorkerRegistration& registration)
-{
- return ServiceWorkerRegistrationGeofencing::from(registration).geofencing();
-}
-
-Geofencing* ServiceWorkerRegistrationGeofencing::geofencing()
-{
- if (!m_geofencing)
- m_geofencing = Geofencing::create(m_registration);
- return m_geofencing.get();
-}
-
-DEFINE_TRACE(ServiceWorkerRegistrationGeofencing)
-{
- visitor->trace(m_registration);
- visitor->trace(m_geofencing);
- Supplement<ServiceWorkerRegistration>::trace(visitor);
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698