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

Unified Diff: mash/init/init.cc

Issue 2496713003: Mojo C++ bindings: switch mash/init mojom target to use STL types. (Closed)
Patch Set: Created 4 years, 1 month 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 | « mash/init/init.h ('k') | mash/init/public/interfaces/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/init/init.cc
diff --git a/mash/init/init.cc b/mash/init/init.cc
index 72c004bb850e18d32b6f55b0f535e5cccdff5eeb..2789820606aafbc6b9bc61d0b38fcac32d48cce1 100644
--- a/mash/init/init.cc
+++ b/mash/init/init.cc
@@ -32,8 +32,7 @@ bool Init::OnConnect(const service_manager::ServiceInfo& remote_info,
return true;
}
-void Init::StartService(const mojo::String& name,
- const mojo::String& user_id) {
+void Init::StartService(const std::string& name, const std::string& user_id) {
if (user_services_.find(user_id) == user_services_.end()) {
service_manager::Connector::ConnectParams params(
service_manager::Identity(name, user_id));
@@ -45,7 +44,7 @@ void Init::StartService(const mojo::String& name,
}
}
-void Init::StopServicesForUser(const mojo::String& user_id) {
+void Init::StopServicesForUser(const std::string& user_id) {
auto it = user_services_.find(user_id);
if (it != user_services_.end())
user_services_.erase(it);
« no previous file with comments | « mash/init/init.h ('k') | mash/init/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698