| Index: chrome/browser/notifications/platform_notification_service_impl.cc
|
| diff --git a/chrome/browser/notifications/platform_notification_service_impl.cc b/chrome/browser/notifications/platform_notification_service_impl.cc
|
| index d1fb2b2e4e5ab70e6e87da895edeb0636a2178e4..14b5a980db6e96c6714f70b3eeb8eeceaa2cc96a 100644
|
| --- a/chrome/browser/notifications/platform_notification_service_impl.cc
|
| +++ b/chrome/browser/notifications/platform_notification_service_impl.cc
|
| @@ -17,13 +17,13 @@
|
| #include "chrome/common/pref_names.h"
|
| #include "components/content_settings/core/browser/host_content_settings_map.h"
|
| #include "components/content_settings/core/common/content_settings.h"
|
| +#include "components/url_formatter/url_formatter.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "content/public/browser/desktop_notification_delegate.h"
|
| #include "content/public/browser/notification_event_dispatcher.h"
|
| #include "content/public/browser/platform_notification_context.h"
|
| #include "content/public/browser/storage_partition.h"
|
| #include "content/public/common/platform_notification_data.h"
|
| -#include "net/base/net_util.h"
|
| #include "ui/message_center/notifier_settings.h"
|
| #include "url/url_constants.h"
|
|
|
| @@ -407,7 +407,8 @@ base::string16 PlatformNotificationServiceImpl::WebOriginDisplayName(
|
| spec.begin() +
|
| parsed.CountCharactersBefore(url::Parsed::USERNAME, true));
|
| }
|
| - formatted_origin.append(net::IDNToUnicode(origin.host(), languages));
|
| + formatted_origin.append(
|
| + url_formatter::IDNToUnicode(origin.host(), languages));
|
| if (origin.has_port()) {
|
| formatted_origin.push_back(':');
|
| formatted_origin.append(base::UTF8ToUTF16(origin.port()));
|
| @@ -417,5 +418,5 @@ base::string16 PlatformNotificationServiceImpl::WebOriginDisplayName(
|
|
|
| // TODO(dewittj): Once file:// URLs are passed in to the origin
|
| // GURL here, begin returning the path as the display name.
|
| - return net::FormatUrl(origin, languages);
|
| + return url_formatter::FormatUrl(origin, languages);
|
| }
|
|
|