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

Unified Diff: content/browser/geolocation/geolocation_observer.h

Issue 10344004: Add content API for requesting the current geolocation (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: *Argh*, missed another forward declaration of a struct as a class. Created 8 years, 8 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
« no previous file with comments | « content/browser/geolocation/geolocation.cc ('k') | content/browser/geolocation/geolocation_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/geolocation/geolocation_observer.h
diff --git a/content/browser/geolocation/geolocation_observer.h b/content/browser/geolocation/geolocation_observer.h
index ed5dc85b2c0b9f35a85bfdf310f02ca52cd062cc..1babcaa349b4360a999d96d8215fa2a019f38409 100644
--- a/content/browser/geolocation/geolocation_observer.h
+++ b/content/browser/geolocation/geolocation_observer.h
@@ -48,6 +48,11 @@ struct GeolocationObserverOptions {
return GeolocationObserverOptions(false);
}
+ // Collapse options with another instance so that both are satisfied.
+ void Collapse(const GeolocationObserverOptions& other) {
+ use_high_accuracy = use_high_accuracy | other.use_high_accuracy;
+ }
+
bool use_high_accuracy;
};
« no previous file with comments | « content/browser/geolocation/geolocation.cc ('k') | content/browser/geolocation/geolocation_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698