Index: content/browser/download/save_package.cc |
diff --git a/content/browser/download/save_package.cc b/content/browser/download/save_package.cc |
index f05c253148c974e3b0cd399117167e997fd6ac03..8b4fc1149d699cb3f58894779f56012308c5c896 100644 |
--- a/content/browser/download/save_package.cc |
+++ b/content/browser/download/save_package.cc |
@@ -18,6 +18,7 @@ |
#include "base/strings/sys_string_conversions.h" |
#include "base/strings/utf_string_conversions.h" |
#include "base/threading/thread.h" |
+#include "components/url_formatter/url_formatter.h" |
#include "content/browser/download/download_item_impl.h" |
#include "content/browser/download/download_manager_impl.h" |
#include "content/browser/download/download_stats.h" |
@@ -1214,7 +1215,7 @@ base::FilePath SavePackage::GetSuggestedNameForSaveAs( |
// back to a URL, and if it matches the original page URL, we know the page |
// had no title (or had a title equal to its URL, which is fine to treat |
// similarly). |
- if (title_ == net::FormatUrl(page_url_, accept_langs)) { |
+ if (title_ == url_formatter::FormatUrl(page_url_, accept_langs)) { |
std::string url_path; |
if (!page_url_.SchemeIs(url::kDataScheme)) { |
std::vector<std::string> url_parts; |