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

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

Issue 373423002: Split Dictionary's get and convert into DictionaryHelper. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/filesystem/FileSystemFlags.h ('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 2236306e4172102b9c2110a0e62106d9661be5cf..ad80f743a615646b8aa280fb2a038de4d610702f 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 (options.get("enableHighAccuracy", highAccuracy))
+ if (DictionaryHelper::get(options, "enableHighAccuracy", highAccuracy))
m_highAccuracy = highAccuracy;
}
if (options.hasProperty("maximumAge")) {
double maximumAge;
- if (options.get("maximumAge", maximumAge)) {
+ if (DictionaryHelper::get(options, "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 (options.get("timeout", timeout)) {
+ if (DictionaryHelper::get(options, "timeout", timeout)) {
if (timeout < 0)
m_timeout = 0;
else if (timeout > std::numeric_limits<unsigned>::max())
« no previous file with comments | « Source/modules/filesystem/FileSystemFlags.h ('k') | Source/modules/indexeddb/IDBDatabase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698