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

Unified Diff: sandbox/src/process_policy_test.cc

Issue 8418034: Make string_util::WriteInto() DCHECK() that the supplied |length_with_null| > 1, meaning that the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | « net/http/http_mac_signature_unittest.cc ('k') | sandbox/src/sandbox_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/src/process_policy_test.cc
===================================================================
--- sandbox/src/process_policy_test.cc (revision 111826)
+++ sandbox/src/process_policy_test.cc (working copy)
@@ -5,11 +5,11 @@
#include <memory>
#include <string>
+#include "base/sys_string_conversions.h"
#include "base/win/scoped_handle.h"
#include "sandbox/src/sandbox.h"
#include "sandbox/src/sandbox_policy.h"
#include "sandbox/src/sandbox_factory.h"
-#include "sandbox/src/sandbox_utils.h"
#include "sandbox/tests/common/controller.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -67,9 +67,9 @@
std::string narrow_cmd_line;
if (cmd_line)
- narrow_cmd_line = sandbox::WideToMultiByte(cmd_line);
+ narrow_cmd_line = base::SysWideToMultiByte(cmd_line, CP_UTF8);
if (!::CreateProcessA(
- exe_name ? sandbox::WideToMultiByte(exe_name).c_str() : NULL,
+ exe_name ? base::SysWideToMultiByte(exe_name, CP_UTF8).c_str() : NULL,
cmd_line ? const_cast<char*>(narrow_cmd_line.c_str()) : NULL,
NULL, NULL, FALSE, 0, NULL, NULL, &sia, &pi)) {
DWORD last_error = GetLastError();
« no previous file with comments | « net/http/http_mac_signature_unittest.cc ('k') | sandbox/src/sandbox_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698