Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6537)

Unified Diff: chrome/browser/notifications/platform_notification_service_impl.cc

Issue 1171333003: Move net::FormatUrl and friends outside of //net and into //components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile fixes following rebase Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698