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

Unified Diff: cloud_print/service/win/local_security_policy.cc

Issue 107383002: Use base namespace for string16 in components and cloud_print. (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 | « cloud_print/service/win/local_security_policy.h ('k') | cloud_print/service/win/service_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cloud_print/service/win/local_security_policy.cc
diff --git a/cloud_print/service/win/local_security_policy.cc b/cloud_print/service/win/local_security_policy.cc
index 44c4e95011278cb460736f989157397a0d4dee56..874498d19aeffa652a314d0cc51fedc1c7c30afb 100644
--- a/cloud_print/service/win/local_security_policy.cc
+++ b/cloud_print/service/win/local_security_policy.cc
@@ -76,8 +76,9 @@ bool LocalSecurityPolicy::Open() {
&policy_);
}
-bool LocalSecurityPolicy::IsPrivilegeSet(const string16& username,
- const string16& privilage) const {
+bool LocalSecurityPolicy::IsPrivilegeSet(
+ const base::string16& username,
+ const base::string16& privilage) const {
DCHECK(policy_);
ATL::CSid user_sid;
if (!user_sid.LoadAccount(username.c_str())) {
@@ -97,8 +98,8 @@ bool LocalSecurityPolicy::IsPrivilegeSet(const string16& username,
return false;
}
-bool LocalSecurityPolicy::SetPrivilege(const string16& username,
- const string16& privilage) {
+bool LocalSecurityPolicy::SetPrivilege(const base::string16& username,
+ const base::string16& privilage) {
DCHECK(policy_);
ATL::CSid user_sid;
if (!user_sid.LoadAccount(username.c_str())) {
@@ -106,7 +107,7 @@ bool LocalSecurityPolicy::SetPrivilege(const string16& username,
return false;
}
LSA_UNICODE_STRING privilege_string;
- string16 privilage_copy(privilage);
+ base::string16 privilage_copy(privilage);
privilege_string.Buffer = &privilage_copy[0];
privilege_string.Length = wcslen(privilege_string.Buffer) *
sizeof(privilege_string.Buffer[0]);
« no previous file with comments | « cloud_print/service/win/local_security_policy.h ('k') | cloud_print/service/win/service_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698