summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/tools/test_shell')
-rw-r--r--webkit/tools/test_shell/notification_presenter.cc14
-rw-r--r--webkit/tools/test_shell/notification_presenter.h4
2 files changed, 1 insertions, 17 deletions
diff --git a/webkit/tools/test_shell/notification_presenter.cc b/webkit/tools/test_shell/notification_presenter.cc
index 163b181..e0402d29 100644
--- a/webkit/tools/test_shell/notification_presenter.cc
+++ b/webkit/tools/test_shell/notification_presenter.cc
@@ -26,23 +26,11 @@ void TestNotificationPresenter::grantPermission(const std::string& origin) {
// The output from all these methods matches what DumpRenderTree produces.
bool TestNotificationPresenter::show(const WebNotification& notification) {
- if (!notification.replaceId().isEmpty()) {
- std::string replace_id(notification.replaceId().utf8());
- if (replacements_.find(replace_id) != replacements_.end())
- printf("REPLACING NOTIFICATION %s\n",
- replacements_.find(replace_id)->second.c_str());
-
- WebString identifier = notification.isHTML() ?
- notification.url().spec().utf16() : notification.title();
- replacements_[replace_id] = identifier.utf8();
- }
-
if (notification.isHTML()) {
printf("DESKTOP NOTIFICATION: contents at %s\n",
notification.url().spec().data());
} else {
- printf("DESKTOP NOTIFICATION:%s icon %s, title %s, text %s\n",
- notification.dir() == "rtl" ? "(RTL)" : "",
+ printf("DESKTOP NOTIFICATION: icon %s, title %s, text %s\n",
notification.iconURL().isEmpty() ? "" :
notification.iconURL().spec().data(),
notification.title().isEmpty() ? "" :
diff --git a/webkit/tools/test_shell/notification_presenter.h b/webkit/tools/test_shell/notification_presenter.h
index f5b3b07..07d7978 100644
--- a/webkit/tools/test_shell/notification_presenter.h
+++ b/webkit/tools/test_shell/notification_presenter.h
@@ -5,7 +5,6 @@
#ifndef WEBKIT_TOOLS_TEST_SHELL_NOTIFICATION_PRESENTER_H_
#define WEBKIT_TOOLS_TEST_SHELL_NOTIFICATION_PRESENTER_H_
-#include <map>
#include <set>
#include <string>
@@ -41,9 +40,6 @@ class TestNotificationPresenter : public WebKit::WebNotificationPresenter {
// List of allowed origins.
std::set<std::string> allowed_origins_;
-
- // Map of active replacement IDs to the titles of those notifications
- std::map<std::string, std::string> replacements_;
};
#endif // WEBKIT_TOOLS_TEST_SHELL_NOTIFICATION_PRESENTER_H_