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

Unified Diff: components/url_formatter/url_formatter.h

Issue 2375803002: Use Unicode in Format{Origin,URL}forSecurityDisplay (Closed)
Patch Set: mention {LSI, PDI} as well Created 4 years, 2 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
« no previous file with comments | « components/url_formatter/elide_url_unittest.cc ('k') | components/url_formatter/url_formatter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/url_formatter/url_formatter.h
diff --git a/components/url_formatter/url_formatter.h b/components/url_formatter/url_formatter.h
index 87b7ba5bcf7dbf2d5c45c01c12e80d1b43cd1dd2..90f2bbf9b73128e35a080382b35fe91d08db3d09 100644
--- a/components/url_formatter/url_formatter.h
+++ b/components/url_formatter/url_formatter.h
@@ -22,6 +22,7 @@
#include <vector>
#include "base/strings/string16.h"
+#include "base/strings/string_piece.h"
#include "base/strings/utf_offset_string_conversions.h"
#include "net/base/escape.h"
@@ -133,7 +134,7 @@ void AppendFormattedHost(const GURL& url, base::string16* output);
//
// The input should be the canonicalized ASCII host name from GURL. This
// function does NOT accept UTF-8!
-base::string16 IDNToUnicode(const std::string& host);
+base::string16 IDNToUnicode(base::StringPiece host);
// If |text| starts with "www." it is removed, otherwise |text| is returned
// unmodified.
« no previous file with comments | « components/url_formatter/elide_url_unittest.cc ('k') | components/url_formatter/url_formatter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698