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); |