Index: chrome/browser/notifications/desktop_notification_infobar_delegate.cc |
diff --git a/chrome/browser/notifications/desktop_notification_infobar_delegate.cc b/chrome/browser/notifications/desktop_notification_infobar_delegate.cc |
index a08b9992d0266e754a8295233a726ffdd5b958e2..7ff50c6f3f374d21a4e66cd420abb25d264d2185 100644 |
--- a/chrome/browser/notifications/desktop_notification_infobar_delegate.cc |
+++ b/chrome/browser/notifications/desktop_notification_infobar_delegate.cc |
@@ -7,8 +7,8 @@ |
#include "chrome/browser/infobars/infobar_service.h" |
#include "chrome/grit/generated_resources.h" |
#include "components/infobars/core/infobar.h" |
+#include "components/url_formatter/url_formatter.h" |
#include "grit/theme_resources.h" |
-#include "net/base/net_util.h" |
#include "ui/base/l10n/l10n_util.h" |
// static |
@@ -44,8 +44,9 @@ int DesktopNotificationInfoBarDelegate::GetIconID() const { |
base::string16 DesktopNotificationInfoBarDelegate::GetMessageText() const { |
return l10n_util::GetStringFUTF16( |
IDS_NOTIFICATION_PERMISSIONS, |
- net::FormatUrl(requesting_frame_.GetOrigin(), display_languages_, |
- net::kFormatUrlOmitUsernamePassword | |
- net::kFormatUrlOmitTrailingSlashOnBareHostname, |
- net::UnescapeRule::SPACES, NULL, NULL, NULL)); |
+ url_formatter::FormatUrl( |
+ requesting_frame_.GetOrigin(), display_languages_, |
+ url_formatter::kFormatUrlOmitUsernamePassword | |
+ url_formatter::kFormatUrlOmitTrailingSlashOnBareHostname, |
+ net::UnescapeRule::SPACES, nullptr, nullptr, nullptr)); |
} |