From e2219171711f7acf49a52ba89eb6e05c27f11103 Mon Sep 17 00:00:00 2001 From: "dsh@google.com" Date: Wed, 25 Feb 2009 19:17:45 +0000 Subject: Change the string_escape functions to use string16 rather than wstring. Review URL: http://codereview.chromium.org/27116 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10358 0039d316-1c4b-4281-b951-d872f2087c98 --- base/string_escape.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'base/string_escape.h') diff --git a/base/string_escape.h b/base/string_escape.h index f58651e..9c6233a 100644 --- a/base/string_escape.h +++ b/base/string_escape.h @@ -7,7 +7,7 @@ #ifndef BASE_STRING_ESCAPE_H__ #define BASE_STRING_ESCAPE_H__ -#include +#include "base/string16.h" namespace string_escape { @@ -17,7 +17,7 @@ namespace string_escape { // If |put_in_quotes| is true, the result will be surrounded in double quotes. // The outputted literal, when interpreted by the browser, should result in a // javascript string that is identical and the same length as the input |str|. -void JavascriptDoubleQuote(const std::wstring& str, +void JavascriptDoubleQuote(const string16& str, bool put_in_quotes, std::string* dst); @@ -33,4 +33,3 @@ void JavascriptDoubleQuote(const std::string& str, } // namespace string_escape #endif // BASE_STRING_ESCAPE_H__ - -- cgit v1.1