diff options
author | dsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 19:17:45 +0000 |
---|---|---|
committer | dsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 19:17:45 +0000 |
commit | e2219171711f7acf49a52ba89eb6e05c27f11103 (patch) | |
tree | 464c5ec96e0a288bf0460d9d7109d12f9bd29207 /base/string_escape.h | |
parent | 5e5bf59cbc75839aafef3ae29bcb53408adb715d (diff) | |
download | chromium_src-e2219171711f7acf49a52ba89eb6e05c27f11103.zip chromium_src-e2219171711f7acf49a52ba89eb6e05c27f11103.tar.gz chromium_src-e2219171711f7acf49a52ba89eb6e05c27f11103.tar.bz2 |
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
Diffstat (limited to 'base/string_escape.h')
-rw-r--r-- | base/string_escape.h | 5 |
1 files changed, 2 insertions, 3 deletions
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 <string> +#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__ - |