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

Unified Diff: sandbox/win/src/registry_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/registry_dispatcher.h ('k') | sandbox/win/src/registry_policy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/registry_dispatcher.cc
diff --git a/sandbox/win/src/registry_dispatcher.cc b/sandbox/win/src/registry_dispatcher.cc
index f4dc5f5288bbdcc2ea25c14b6068b9e7fc51515e..2a92497c7c9406ee94e0544c66be2aa3eb83457a 100644
--- a/sandbox/win/src/registry_dispatcher.cc
+++ b/sandbox/win/src/registry_dispatcher.cc
@@ -20,8 +20,8 @@
namespace {
// Builds a path using the root directory and the name.
-bool GetCompletePath(HANDLE root, const std::wstring& name,
- std::wstring* complete_name) {
+bool GetCompletePath(HANDLE root, const base::string16& name,
+ base::string16* complete_name) {
if (root) {
if (!sandbox::GetPathFromHandle(root, complete_name))
return false;
@@ -72,10 +72,10 @@ bool RegistryDispatcher::SetupService(InterceptionManager* manager,
}
bool RegistryDispatcher::NtCreateKey(
- IPCInfo* ipc, std::wstring* name, DWORD attributes, HANDLE root,
+ IPCInfo* ipc, base::string16* name, DWORD attributes, HANDLE root,
DWORD desired_access, DWORD title_index, DWORD create_options) {
base::win::ScopedHandle root_handle;
- std::wstring real_path = *name;
+ base::string16 real_path = *name;
// If there is a root directory, we need to duplicate the handle to make
// it valid in this process.
@@ -117,11 +117,11 @@ bool RegistryDispatcher::NtCreateKey(
return true;
}
-bool RegistryDispatcher::NtOpenKey(IPCInfo* ipc, std::wstring* name,
+bool RegistryDispatcher::NtOpenKey(IPCInfo* ipc, base::string16* name,
DWORD attributes, HANDLE root,
DWORD desired_access) {
base::win::ScopedHandle root_handle;
- std::wstring real_path = *name;
+ base::string16 real_path = *name;
// If there is a root directory, we need to duplicate the handle to make
// it valid in this process.
« no previous file with comments | « sandbox/win/src/registry_dispatcher.h ('k') | sandbox/win/src/registry_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698