Index: chrome/browser/notifications/platform_notification_service_impl.h |
diff --git a/chrome/browser/notifications/platform_notification_service_impl.h b/chrome/browser/notifications/platform_notification_service_impl.h |
index b8aa58093ca7663c70ddcdf81f0a9ca7db12a82b..16f0736a9fbdb3d37c9ca4b194e52a8ee4bcc592 100644 |
--- a/chrome/browser/notifications/platform_notification_service_impl.h |
+++ b/chrome/browser/notifications/platform_notification_service_impl.h |
@@ -90,6 +90,8 @@ class PlatformNotificationServiceImpl |
friend class PlatformNotificationServiceBrowserTest; |
friend class PlatformNotificationServiceTest; |
friend class PushMessagingBrowserTest; |
+ FRIEND_TEST_ALL_PREFIXES(PlatformNotificationServiceTest, |
+ CreateNotificationFromData); |
FRIEND_TEST_ALL_PREFIXES( |
PlatformNotificationServiceTest, DisplayNameForOrigin); |
FRIEND_TEST_ALL_PREFIXES(PlatformNotificationServiceTest, |
@@ -115,15 +117,7 @@ class PlatformNotificationServiceImpl |
// Returns a display name for an origin, to be used in permission infobar or |
// on the frame of the notification toast. Different from the origin itself |
// when dealing with extensions. |
- base::string16 DisplayNameForOrigin(Profile* profile, |
- const GURL& origin) const; |
- |
- // Translates a URL into a slightly more readable version that may omit |
- // the port and scheme for common cases. |
- // TODO(dewittj): Remove this when the proper function is implemented in a |
- // chrome/browser/ui library function. See crbug.com/402698. |
- static base::string16 WebOriginDisplayName(const GURL& origin, |
- const std::string& languages); |
+ std::string DisplayNameForOrigin(Profile* profile, const GURL& origin) const; |
// Weak reference. Ownership maintains with the test. |
NotificationUIManager* notification_ui_manager_for_tests_; |