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

Unified Diff: services/service_manager/public/cpp/lib/identity.cc

Issue 2440903002: Make "all user" services work when packaged. (Closed)
Patch Set: Addressed latest comments and synced. Created 4 years, 2 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 | « services/catalog/entry.cc ('k') | services/service_manager/public/interfaces/resolver.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/service_manager/public/cpp/lib/identity.cc
diff --git a/services/service_manager/public/cpp/lib/identity.cc b/services/service_manager/public/cpp/lib/identity.cc
index 99d9e17ee69f714134f516cf5d2574e0de505473..e3bb7c0d86cc17f2b2dd33e8818de7347e6f92ab 100644
--- a/services/service_manager/public/cpp/lib/identity.cc
+++ b/services/service_manager/public/cpp/lib/identity.cc
@@ -18,7 +18,7 @@ Identity::Identity(const std::string& name, const std::string& user_id,
const std::string& instance)
: name_(name),
user_id_(user_id),
- instance_(instance.empty() ? GetNamePath(name_) : instance) {
+ instance_(instance) {
CHECK(!user_id.empty());
CHECK(base::IsValidGUID(user_id));
}
« no previous file with comments | « services/catalog/entry.cc ('k') | services/service_manager/public/interfaces/resolver.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698