| Index: Source/modules/notifications/Notification.cpp
|
| diff --git a/Source/modules/notifications/Notification.cpp b/Source/modules/notifications/Notification.cpp
|
| index 750c2e328bba306d800a1334ac5feb885c0a047c..183f3d41cf1b04e1a2d9d93ac232ced4019d88f8 100644
|
| --- a/Source/modules/notifications/Notification.cpp
|
| +++ b/Source/modules/notifications/Notification.cpp
|
| @@ -32,6 +32,7 @@
|
| #include "modules/notifications/Notification.h"
|
|
|
| #include "bindings/core/v8/Dictionary.h"
|
| +#include "bindings/core/v8/DictionaryHelper.h"
|
| #include "bindings/core/v8/ScriptWrappable.h"
|
| #include "core/dom/Document.h"
|
| #include "core/events/Event.h"
|
| @@ -48,15 +49,15 @@ Notification* Notification::create(ExecutionContext* context, const String& titl
|
| Notification* notification = adoptRefCountedGarbageCollectedWillBeNoop(new Notification(title, context, &client));
|
|
|
| String argument;
|
| - if (options.get("body", argument))
|
| + if (DictionaryHelper::get(options, "body", argument))
|
| notification->setBody(argument);
|
| - if (options.get("tag", argument))
|
| + if (DictionaryHelper::get(options, "tag", argument))
|
| notification->setTag(argument);
|
| - if (options.get("lang", argument))
|
| + if (DictionaryHelper::get(options, "lang", argument))
|
| notification->setLang(argument);
|
| - if (options.get("dir", argument))
|
| + if (DictionaryHelper::get(options, "dir", argument))
|
| notification->setDir(argument);
|
| - if (options.get("icon", argument)) {
|
| + if (DictionaryHelper::get(options, "icon", argument)) {
|
| KURL iconUrl = argument.isEmpty() ? KURL() : context->completeURL(argument);
|
| if (!iconUrl.isEmpty() && iconUrl.isValid())
|
| notification->setIconUrl(iconUrl);
|
|
|