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

Unified Diff: components/password_manager/core/browser/affiliation_utils.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: components/password_manager/core/browser/affiliation_utils.cc
diff --git a/components/password_manager/core/browser/affiliation_utils.cc b/components/password_manager/core/browser/affiliation_utils.cc
index 3cdc9eafb7a1ebc52a2e9cc77ae85bdaf7ce35a4..b89c4fcb3f6c567d26ea3211d913f416e7b712d7 100644
--- a/components/password_manager/core/browser/affiliation_utils.cc
+++ b/components/password_manager/core/browser/affiliation_utils.cc
@@ -14,6 +14,7 @@
#include "base/strings/string_util.h"
#include "components/autofill/core/common/password_form.h"
#include "components/password_manager/core/common/password_manager_switches.h"
+#include "components/url_formatter/url_formatter.h"
#include "components/variations/variations_associated_data.h"
#include "net/base/escape.h"
#include "url/third_party/mozilla/url_parse.h"
@@ -343,6 +344,8 @@ std::string GetHumanReadableOrigin(const autofill::PasswordForm& password_form,
password_form.signon_realm);
if (facet_uri.IsValidAndroidFacetURI())
return facet_uri.scheme() + "://" + facet_uri.android_package_name();
- return base::UTF16ToUTF8(net::FormatUrl(password_form.origin, languages));
+ return base::UTF16ToUTF8(
+ url_formatter::FormatUrl(password_form.origin, languages));
}
+
} // namespace password_manager

Powered by Google App Engine
This is Rietveld 408576698