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

Unified Diff: sandbox/win/src/filesystem_dispatcher.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/src/filesystem_dispatcher.h ('k') | sandbox/win/src/filesystem_policy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/filesystem_dispatcher.cc
diff --git a/sandbox/win/src/filesystem_dispatcher.cc b/sandbox/win/src/filesystem_dispatcher.cc
index 22240ff0e55405c8e8924637b9bd92bd3e32b460..275122be918c29a61784c17185173e61f76301e6 100644
--- a/sandbox/win/src/filesystem_dispatcher.cc
+++ b/sandbox/win/src/filesystem_dispatcher.cc
@@ -83,7 +83,7 @@ bool FilesystemDispatcher::SetupService(InterceptionManager* manager,
}
bool FilesystemDispatcher::NtCreateFile(
- IPCInfo* ipc, std::wstring* name, DWORD attributes, DWORD desired_access,
+ IPCInfo* ipc, base::string16* name, DWORD attributes, DWORD desired_access,
DWORD file_attributes, DWORD share_access, DWORD create_disposition,
DWORD create_options) {
if (!PreProcessName(*name, name)) {
@@ -126,7 +126,7 @@ bool FilesystemDispatcher::NtCreateFile(
}
bool FilesystemDispatcher::NtOpenFile(
- IPCInfo* ipc, std::wstring* name, DWORD attributes, DWORD desired_access,
+ IPCInfo* ipc, base::string16* name, DWORD attributes, DWORD desired_access,
DWORD share_access, DWORD open_options) {
if (!PreProcessName(*name, name)) {
// The path requested might contain a reparse point.
@@ -166,7 +166,7 @@ bool FilesystemDispatcher::NtOpenFile(
}
bool FilesystemDispatcher::NtQueryAttributesFile(
- IPCInfo* ipc, std::wstring* name, DWORD attributes, CountedBuffer* info) {
+ IPCInfo* ipc, base::string16* name, DWORD attributes, CountedBuffer* info) {
if (sizeof(FILE_BASIC_INFORMATION) != info->Size())
return false;
@@ -204,7 +204,7 @@ bool FilesystemDispatcher::NtQueryAttributesFile(
}
bool FilesystemDispatcher::NtQueryFullAttributesFile(
- IPCInfo* ipc, std::wstring* name, DWORD attributes, CountedBuffer* info) {
+ IPCInfo* ipc, base::string16* name, DWORD attributes, CountedBuffer* info) {
if (sizeof(FILE_NETWORK_OPEN_INFORMATION) != info->Size())
return false;
@@ -257,7 +257,7 @@ bool FilesystemDispatcher::NtSetInformationFile(
if (!IsSupportedRenameCall(rename_info, length, info_class))
return false;
- std::wstring name;
+ base::string16 name;
name.assign(rename_info->FileName, rename_info->FileNameLength /
sizeof(rename_info->FileName[0]));
if (!PreProcessName(name, &name)) {
« no previous file with comments | « sandbox/win/src/filesystem_dispatcher.h ('k') | sandbox/win/src/filesystem_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698