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

Unified Diff: chrome/browser/ui/passwords/manage_passwords_view_utils.cc

Issue 1130213004: [Smart Lock] Make android URL prettifying util available on ios. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased on top of master Created 5 years, 7 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/ui/passwords/manage_passwords_view_utils.cc
diff --git a/chrome/browser/ui/passwords/manage_passwords_view_utils.cc b/chrome/browser/ui/passwords/manage_passwords_view_utils.cc
index 122c12e931dcf97e98e89f36f9c9e02085a2071b..880fada39d96842d37d119df6c7378cb41e82d5d 100644
--- a/chrome/browser/ui/passwords/manage_passwords_view_utils.cc
+++ b/chrome/browser/ui/passwords/manage_passwords_view_utils.cc
@@ -5,7 +5,6 @@
#include "chrome/browser/ui/passwords/manage_passwords_view_utils.h"
#include "base/strings/utf_string_conversions.h"
-#include "components/autofill/core/common/password_form.h"
#include "components/password_manager/core/browser/affiliation_utils.h"
#include "net/base/net_util.h"
#include "ui/gfx/geometry/rect.h"
@@ -29,13 +28,3 @@ gfx::ImageSkia ScaleImageForAccountAvatar(gfx::ImageSkia skia_image) {
skia::ImageOperations::RESIZE_BEST,
gfx::Size(kAvatarImageSize, kAvatarImageSize));
}
-
-std::string GetHumanReadableOrigin(const autofill::PasswordForm& password_form,
- const std::string& languages) {
- password_manager::FacetURI facet_uri =
- password_manager::FacetURI::FromPotentiallyInvalidSpec(
- 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));
-}

Powered by Google App Engine
This is Rietveld 408576698