diff options
author | joth@chromium.org <joth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-24 12:07:34 +0000 |
---|---|---|
committer | joth@chromium.org <joth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-24 12:07:34 +0000 |
commit | 2c752481fa190588a852ff96a0ffe9428f0dc51d (patch) | |
tree | 13eddc3ba6c5e025a320d64b9cc3ba6538e7cbb2 /chrome/browser/geolocation/location_arbitrator.h | |
parent | 0356780d90410e3f91759c9be7c9218e052f01fd (diff) | |
download | chromium_src-2c752481fa190588a852ff96a0ffe9428f0dc51d.zip chromium_src-2c752481fa190588a852ff96a0ffe9428f0dc51d.tar.gz chromium_src-2c752481fa190588a852ff96a0ffe9428f0dc51d.tar.bz2 |
Fix bug found in the location arbitrator whilst doing trial integration: need to make callback when new observer registers. + add a test for it.
BUG=none
TEST=GeolocationLocationArbitratorTest.RegistrationAfterFixArrives
Review URL: http://codereview.chromium.org/652136
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39884 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/geolocation/location_arbitrator.h')
-rw-r--r-- | chrome/browser/geolocation/location_arbitrator.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/chrome/browser/geolocation/location_arbitrator.h b/chrome/browser/geolocation/location_arbitrator.h index df2e517..86b6d99 100644 --- a/chrome/browser/geolocation/location_arbitrator.h +++ b/chrome/browser/geolocation/location_arbitrator.h @@ -19,8 +19,12 @@ struct Geoposition; // moment. class GeolocationArbitrator { public: - // Creates and returns a new instance of the location arbitrator. - static GeolocationArbitrator* New( + // Creates and returns a new instance of the location arbitrator. Will use + // the default access token store implementation bound to Chrome Prefs. + static GeolocationArbitrator* Create(URLRequestContextGetter* context_getter); + // Creates and returns a new instance of the location arbitrator. As above + // but allows injectino of the access token store, for testing. + static GeolocationArbitrator* Create( AccessTokenStore* access_token_store, URLRequestContextGetter* context_getter); @@ -36,6 +40,8 @@ class GeolocationArbitrator { }; struct UpdateOptions { UpdateOptions() : use_high_accuracy(false) {} + explicit UpdateOptions(bool high_accuracy) + : use_high_accuracy(high_accuracy) {} bool use_high_accuracy; }; |