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

Unified Diff: mojo/shell/tests/connect/connect_test_package.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/tests/connect/connect_test_app.cc ('k') | mojo/shell/tests/connect/connect_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/tests/connect/connect_test_package.cc
diff --git a/mojo/shell/tests/connect/connect_test_package.cc b/mojo/shell/tests/connect/connect_test_package.cc
index 91b6aa286ae1ea5a50bac452a5d27ea77b03d56a..e672824408bbebc06a657db1508d6c3c4341cbe5 100644
--- a/mojo/shell/tests/connect/connect_test_package.cc
+++ b/mojo/shell/tests/connect/connect_test_package.cc
@@ -51,7 +51,7 @@ class ProvidedShellClient
private:
// mojo::ShellClient:
void Initialize(Connector* connector, const std::string& name,
- uint32_t id, uint32_t user_id) override {
+ const std::string& user_id, uint32_t id) override {
name_ = name;
id_ = id;
userid_ = user_id;
@@ -115,7 +115,7 @@ class ProvidedShellClient
std::string name_;
uint32_t id_ = mojom::Connector::kInvalidApplicationID;
- uint32_t userid_ = mojom::Connector::kUserRoot;
+ std::string userid_ = mojom::kRootUserID;
const std::string title_;
mojom::ShellClientRequest request_;
test::mojom::ExposedInterfacePtr caller_;
@@ -138,7 +138,7 @@ class ConnectTestShellClient
private:
// mojo::ShellClient:
void Initialize(Connector* connector, const std::string& name,
- uint32_t id, uint32_t user_id) override {
+ const std::string& user_id, uint32_t id) override {
bindings_.set_connection_error_handler(
base::Bind(&ConnectTestShellClient::OnConnectionError,
base::Unretained(this)));
« no previous file with comments | « mojo/shell/tests/connect/connect_test_app.cc ('k') | mojo/shell/tests/connect/connect_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698