diff options
author | adamk@chromium.org <adamk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-03 22:33:13 +0000 |
---|---|---|
committer | adamk@chromium.org <adamk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-03 22:33:13 +0000 |
commit | 7eaf3dec9f33b5d14bb03d5fccb9272dd8426207 (patch) | |
tree | d276a071dcf1dedb54921e68ce4d0284f5cb2eb0 /webkit/tools | |
parent | c13b0f0a6bc4173acc54e88030de77c7b61b0125 (diff) | |
download | chromium_src-7eaf3dec9f33b5d14bb03d5fccb9272dd8426207.zip chromium_src-7eaf3dec9f33b5d14bb03d5fccb9272dd8426207.tar.gz chromium_src-7eaf3dec9f33b5d14bb03d5fccb9272dd8426207.tar.bz2 |
Remove last call to deprecated WebNotification::dir() method
from the chromium tree.
Review URL: http://codereview.chromium.org/6348015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73680 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools')
-rw-r--r-- | webkit/tools/test_shell/notification_presenter.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/webkit/tools/test_shell/notification_presenter.cc b/webkit/tools/test_shell/notification_presenter.cc index 9e3bf12..1c9be39 100644 --- a/webkit/tools/test_shell/notification_presenter.cc +++ b/webkit/tools/test_shell/notification_presenter.cc @@ -11,6 +11,7 @@ #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPermissionCallback.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" +#include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" using WebKit::WebNotification; @@ -18,6 +19,7 @@ using WebKit::WebNotificationPresenter; using WebKit::WebNotificationPermissionCallback; using WebKit::WebSecurityOrigin; using WebKit::WebString; +using WebKit::WebTextDirectionRightToLeft; using WebKit::WebURL; namespace { @@ -50,7 +52,8 @@ bool TestNotificationPresenter::show(const WebNotification& notification) { notification.url().spec().data()); } else { printf("DESKTOP NOTIFICATION:%s icon %s, title %s, text %s\n", - notification.dir() == "rtl" ? "(RTL)" : "", + notification.direction() == WebTextDirectionRightToLeft ? "(RTL)" : + "", notification.iconURL().isEmpty() ? "" : notification.iconURL().spec().data(), notification.title().isEmpty() ? "" : |