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

Unified Diff: chrome/renderer/localized_error.cc

Issue 6317016: Change UTF8ToUTF16 to accept const StringPiece&. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 11 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/renderer/localized_error.cc
diff --git a/chrome/renderer/localized_error.cc b/chrome/renderer/localized_error.cc
index 7b4ae31dd8ebc0d6899ec4811e5de1a7444acc44..88212672455f9d11e1c0976d5ac9643936bacb7d 100644
--- a/chrome/renderer/localized_error.cc
+++ b/chrome/renderer/localized_error.cc
@@ -355,7 +355,7 @@ void LocalizedError::GetStrings(const WebKit::WebURLError& error,
l10n_util::GetStringUTF16(IDS_ERRORPAGES_SUGGESTION_HEADING));
}
- string16 failed_url(ASCIIToUTF16(error.unreachableURL.spec()));
+ string16 failed_url(ASCIIToUTF16(std::string(error.unreachableURL.spec())));
// URLs are always LTR.
if (rtl)
base::i18n::WrapStringWithLTRFormatting(&failed_url);
« no previous file with comments | « chrome/installer/util/l10n_string_util.cc ('k') | chrome/test/mini_installer_test/mini_installer_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698