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

Unified Diff: Source/modules/geolocation/PositionOptions.cpp

Issue 534133002: [WIP] bindings: Introduce PropertyBag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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 | « Source/modules/geofencing/CircularRegion.cpp ('k') | Source/modules/indexeddb/IDBDatabase.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/geolocation/PositionOptions.cpp
diff --git a/Source/modules/geolocation/PositionOptions.cpp b/Source/modules/geolocation/PositionOptions.cpp
index ec06ec5b55de6d2b113072bc7b8bede2b0c7277a..6ceb318a617c125586b96cdb5e013144129e0306 100644
--- a/Source/modules/geolocation/PositionOptions.cpp
+++ b/Source/modules/geolocation/PositionOptions.cpp
@@ -22,12 +22,12 @@ PositionOptions::PositionOptions(const Dictionary& options)
{
if (options.hasProperty("enableHighAccuracy")) {
bool highAccuracy;
- if (DictionaryHelper::get(options, "enableHighAccuracy", highAccuracy))
+ if (options.get("enableHighAccuracy", highAccuracy))
m_highAccuracy = highAccuracy;
}
if (options.hasProperty("maximumAge")) {
double maximumAge;
- if (DictionaryHelper::get(options, "maximumAge", maximumAge)) {
+ if (options.get("maximumAge", maximumAge)) {
if (maximumAge < 0)
m_maximumAge = 0;
else if (maximumAge > std::numeric_limits<unsigned>::max())
@@ -38,7 +38,7 @@ PositionOptions::PositionOptions(const Dictionary& options)
}
if (options.hasProperty("timeout")) {
double timeout;
- if (DictionaryHelper::get(options, "timeout", timeout)) {
+ if (options.get("timeout", timeout)) {
if (timeout < 0)
m_timeout = 0;
else if (timeout > std::numeric_limits<unsigned>::max())
« no previous file with comments | « Source/modules/geofencing/CircularRegion.cpp ('k') | Source/modules/indexeddb/IDBDatabase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698