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

Unified Diff: chrome/browser/extensions/api/location/location_manager.cc

Issue 624153002: replace OVERRIDE and FINAL with override and final in chrome/browser/extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/location/location_manager.cc
diff --git a/chrome/browser/extensions/api/location/location_manager.cc b/chrome/browser/extensions/api/location/location_manager.cc
index ee23184b1e3f2ec74a497f3b43f604425d27ecb6..3b5b9854177c7139db5fdeeb2976450c6b70c3f6 100644
--- a/chrome/browser/extensions/api/location/location_manager.cc
+++ b/chrome/browser/extensions/api/location/location_manager.cc
@@ -58,7 +58,7 @@ class DistanceBasedUpdatePolicy : public UpdatePolicy {
// UpdatePolicy Implementation
virtual bool ShouldSendUpdate(const content::Geoposition& position) const
- OVERRIDE {
+ override {
return !last_updated_position_.Validate() ||
Distance(position.latitude,
position.longitude,
@@ -68,7 +68,7 @@ class DistanceBasedUpdatePolicy : public UpdatePolicy {
}
virtual void OnPositionReported(const content::Geoposition& position)
- OVERRIDE {
+ override {
last_updated_position_ = position;
}
@@ -117,12 +117,12 @@ class TimeBasedUpdatePolicy : public UpdatePolicy {
{}
// UpdatePolicy Implementation
- virtual bool ShouldSendUpdate(const content::Geoposition&) const OVERRIDE {
+ virtual bool ShouldSendUpdate(const content::Geoposition&) const override {
return (base::Time::Now() - last_update_time_).InMilliseconds() >
time_between_updates_ms_;
}
- virtual void OnPositionReported(const content::Geoposition&) OVERRIDE {
+ virtual void OnPositionReported(const content::Geoposition&) override {
last_update_time_ = base::Time::Now();
}
« no previous file with comments | « chrome/browser/extensions/api/location/location_manager.h ('k') | chrome/browser/extensions/api/log_private/log_private_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698