Index: content/browser/frame_host/navigation_entry_impl.cc |
diff --git a/content/browser/frame_host/navigation_entry_impl.cc b/content/browser/frame_host/navigation_entry_impl.cc |
index 8d889c9e189627d91ea2acd7cd5578ac7dcafc9e..3a402dfae2504531d7a00b57d39eb7b648b63e78 100644 |
--- a/content/browser/frame_host/navigation_entry_impl.cc |
+++ b/content/browser/frame_host/navigation_entry_impl.cc |
@@ -9,10 +9,10 @@ |
#include "base/metrics/histogram.h" |
#include "base/strings/string_util.h" |
#include "base/strings/utf_string_conversions.h" |
+#include "components/url_formatter/url_formatter.h" |
#include "content/common/navigation_params.h" |
#include "content/public/common/content_constants.h" |
#include "content/public/common/url_constants.h" |
-#include "net/base/net_util.h" |
#include "ui/gfx/text_elider.h" |
// Use this to get a new unique ID for a NavigationEntry during construction. |
@@ -202,9 +202,9 @@ const base::string16& NavigationEntryImpl::GetTitleForDisplay( |
// Use the virtual URL first if any, and fall back on using the real URL. |
base::string16 title; |
if (!virtual_url_.is_empty()) { |
- title = net::FormatUrl(virtual_url_, languages); |
+ title = url_formatter::FormatUrl(virtual_url_, languages); |
} else if (!GetURL().is_empty()) { |
- title = net::FormatUrl(GetURL(), languages); |
+ title = url_formatter::FormatUrl(GetURL(), languages); |
} |
// For file:// URLs use the filename as the title, not the full path. |