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

Side by Side Diff: content/common/geofencing_status.cc

Issue 586163003: Basic implementation of GeofencingManager class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@geofencing5
Patch Set: minor cleanup Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « content/common/geofencing_status.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/geofencing_status.h" 5 #include "content/common/geofencing_status.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 const char* GeofencingStatusToString(GeofencingStatus status) { 11 const char* GeofencingStatusToString(GeofencingStatus status) {
12 switch (status) { 12 switch (status) {
13 case GEOFENCING_STATUS_OK: 13 case GEOFENCING_STATUS_OK:
14 return "Operation has succeeded"; 14 return "Operation has succeeded";
15 15
16 case GEOFENCING_STATUS_OPERATION_FAILED_NO_SERVICE_WORKER: 16 case GEOFENCING_STATUS_OPERATION_FAILED_NO_SERVICE_WORKER:
17 return "Operation failed - no Service Worker"; 17 return "Operation failed - no Service Worker";
18 18
19 case GEOFENCING_STATUS_OPERATION_FAILED_SERVICE_NOT_AVAILABLE: 19 case GEOFENCING_STATUS_OPERATION_FAILED_SERVICE_NOT_AVAILABLE:
20 return "Operation failed - geofencing not available"; 20 return "Operation failed - geofencing not available";
21 21
22 case GEOFENCING_STATUS_UNREGISTRATION_FAILED_NOT_REGISTERED:
23 return "Unregistration failed - no region registered with given ID";
24
22 case GEOFENCING_STATUS_ERROR: 25 case GEOFENCING_STATUS_ERROR:
23 return "Operation has failed (unspecified reason)"; 26 return "Operation has failed (unspecified reason)";
24 } 27 }
25 NOTREACHED(); 28 NOTREACHED();
26 return ""; 29 return "";
27 } 30 }
28 31
29 } // namespace content 32 } // namespace content
OLDNEW
« no previous file with comments | « content/common/geofencing_status.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698