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

Unified Diff: mojo/shell/identity.cc

Issue 1770533002: Change userid from a uint32_t to a string guid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@33connector
Patch Set: . Created 4 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 | « mojo/shell/identity.h ('k') | mojo/shell/public/cpp/application_test_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/identity.cc
diff --git a/mojo/shell/identity.cc b/mojo/shell/identity.cc
index 45af11ac6d0cf46c57cd1aab133d999f756fc1d6..243565a91f4650685859a15c2d35b8db948dcadb 100644
--- a/mojo/shell/identity.cc
+++ b/mojo/shell/identity.cc
@@ -13,10 +13,10 @@ namespace shell {
Identity::Identity() {}
Identity::Identity(const std::string& name)
- : Identity(name, GetNamePath(name), mojom::Connector::kUserRoot) {}
+ : Identity(name, GetNamePath(name), mojom::kRootUserID) {}
Identity::Identity(const std::string& name, const std::string& qualifier,
- uint32_t user_id)
+ const std::string& user_id)
: name_(name),
qualifier_(qualifier.empty() ? GetNamePath(name_) : qualifier),
user_id_(user_id) {}
@@ -45,7 +45,7 @@ bool Identity::operator==(const Identity& other) const {
}
Identity CreateShellIdentity() {
- Identity id = Identity("mojo:shell", "", mojom::Connector::kUserRoot);
+ Identity id = Identity("mojo:shell", "", mojom::kRootUserID);
id.set_filter(GetPermissiveCapabilityFilter());
return id;
}
« no previous file with comments | « mojo/shell/identity.h ('k') | mojo/shell/public/cpp/application_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698