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; |
}; |