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 b51b7be0dd1251c45821daa1fca2bc33aabe396f..1e3b9e578e09f76d2074dd495d17772f24b8df5e 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. |
@@ -222,9 +222,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. |