| Index: content/public/common/geofencing_status.cc
|
| diff --git a/content/public/common/geofencing_status.cc b/content/public/common/geofencing_status.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5e9b498d82a5f23e7c7ced4032fa9ee94aa712f7
|
| --- /dev/null
|
| +++ b/content/public/common/geofencing_status.cc
|
| @@ -0,0 +1,29 @@
|
| +// 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 "content/public/common/geofencing_status.h"
|
| +
|
| +#include "base/logging.h"
|
| +
|
| +namespace content {
|
| +
|
| +const char* GeofencingStatusToString(GeofencingStatus status) {
|
| + switch (status) {
|
| + case GEOFENCING_STATUS_OK:
|
| + return "Operation has succeeded";
|
| +
|
| + case GEOFENCING_STATUS_REGISTRATION_FAILED_NO_SERVICE_WORKER:
|
| + return "Registration failed - no Service Worker";
|
| +
|
| + case GEOFENCING_STATUS_REGISTRATION_FAILED_SERVICE_NOT_AVAILABLE:
|
| + return "Registration failed - geofencing not available";
|
| +
|
| + case GEOFENCING_STATUS_ERROR:
|
| + return "Operation has failed (unspecified reason)";
|
| + }
|
| + NOTREACHED();
|
| + return "";
|
| +}
|
| +
|
| +} // namespace content
|
|
|