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

Unified Diff: content/common/sandbox_policy.cc

Issue 9585001: Cleanup: Remove deprecated version of file_util::AppendToPath(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 months 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 | « chrome/test/mini_installer_test/installer_test_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_policy.cc
===================================================================
--- content/common/sandbox_policy.cc (revision 125906)
+++ content/common/sandbox_policy.cc (working copy)
@@ -290,11 +290,11 @@
if (long_path_return_value == 0 || long_path_return_value >= MAX_PATH)
return false;
- string16 debug_message(long_path_buf);
- file_util::AppendToPath(&debug_message, L"debug_message.exe");
+ FilePath debug_message(long_path_buf);
+ debug_message = debug_message.AppendASCII("debug_message.exe");
result = policy->AddRule(sandbox::TargetPolicy::SUBSYS_PROCESS,
sandbox::TargetPolicy::PROCESS_MIN_EXEC,
- debug_message.c_str());
+ debug_message.value().c_str());
if (result != sandbox::SBOX_ALL_OK)
return false;
#endif // NDEBUG
@@ -580,7 +580,7 @@
(base::win::OSInfo::GetInstance()->wow64_status() ==
base::win::OSInfo::WOW64_DISABLED)) {
const SIZE_T kOneGigabyte = 1 << 30;
- void *nacl_mem = VirtualAllocEx(target.hProcess,
+ void* nacl_mem = VirtualAllocEx(target.hProcess,
NULL,
kOneGigabyte,
MEM_RESERVE,
« no previous file with comments | « chrome/test/mini_installer_test/installer_test_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698