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

Side by Side Diff: device/geolocation/geolocation_service_impl.cc

Issue 2479093002: Migrate more files to histogram_macros.h from histogram.h. (Closed)
Patch Set: Created 4 years, 1 month 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
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 "device/geolocation/geolocation_service_impl.h" 5 #include "device/geolocation/geolocation_service_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram_macros.h"
11 #include "device/geolocation/geolocation_service_context.h" 11 #include "device/geolocation/geolocation_service_context.h"
12 12
13 namespace device { 13 namespace device {
14 14
15 namespace { 15 namespace {
16 16
17 // Geoposition error codes for reporting in UMA. 17 // Geoposition error codes for reporting in UMA.
18 enum GeopositionErrorCode { 18 enum GeopositionErrorCode {
19 // NOTE: Do not renumber these as that would confuse interpretation of 19 // NOTE: Do not renumber these as that would confuse interpretation of
20 // previously logged data. When making changes, also update the enum list 20 // previously logged data. When making changes, also update the enum list
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 ReportCurrentPosition(); 181 ReportCurrentPosition();
182 } 182 }
183 183
184 void GeolocationServiceImpl::ReportCurrentPosition() { 184 void GeolocationServiceImpl::ReportCurrentPosition() {
185 position_callback_.Run(current_position_.Clone()); 185 position_callback_.Run(current_position_.Clone());
186 position_callback_.Reset(); 186 position_callback_.Reset();
187 has_position_to_report_ = false; 187 has_position_to_report_ = false;
188 } 188 }
189 189
190 } // namespace device 190 } // namespace device
OLDNEW
« no previous file with comments | « components/sync/model/data_type_error_handler_impl.cc ('k') | extensions/browser/api/app_runtime/app_runtime_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698