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

Unified Diff: sandbox/win/sandbox_poc/sandbox.cc

Issue 109843003: Replace wstring with string16 in sandbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « sandbox/win/sandbox_poc/pocdll/spyware.cc ('k') | sandbox/win/src/Wow64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/sandbox_poc/sandbox.cc
diff --git a/sandbox/win/sandbox_poc/sandbox.cc b/sandbox/win/sandbox_poc/sandbox.cc
index 31cf3083c84a706e95a93190afd20e2758378383..e2820753211a0b6ed4fd3d7036ade481b8b6f6b0 100644
--- a/sandbox/win/sandbox_poc/sandbox.cc
+++ b/sandbox/win/sandbox_poc/sandbox.cc
@@ -17,7 +17,7 @@ typedef void(__cdecl *lpfnInit)(HANDLE);
bool ParseCommandLine(wchar_t * command_line,
std::string * dll_name,
std::string * entry_point,
- std::wstring * log_file) {
+ base::string16 * log_file) {
DCHECK(dll_name);
DCHECK(entry_point);
DCHECK(log_file);
@@ -35,8 +35,8 @@ bool ParseCommandLine(wchar_t * command_line,
return false;
}
- std::wstring entry_point_wide = arg_list[1];
- std::wstring dll_name_wide = arg_list[2];
+ base::string16 entry_point_wide = arg_list[1];
+ base::string16 dll_name_wide = arg_list[2];
*entry_point = std::string(entry_point_wide.begin(), entry_point_wide.end());
*dll_name = std::string(dll_name_wide.begin(), dll_name_wide.end());
*log_file = arg_list[3];
@@ -126,7 +126,7 @@ int APIENTRY _tWinMain(HINSTANCE instance, HINSTANCE, wchar_t* command_line,
// Parse the command line to find out what we need to call
std::string dll_name, entry_point;
- std::wstring log_file;
+ base::string16 log_file;
if (!ParseCommandLine(GetCommandLineW(),
&dll_name,
&entry_point,
« no previous file with comments | « sandbox/win/sandbox_poc/pocdll/spyware.cc ('k') | sandbox/win/src/Wow64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698