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

Unified Diff: mojo/shell/identity.cc

Issue 1126393006: core_services: Run different services in different processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests by never having an empty qualifier. Created 5 years, 7 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/application_manager.cc ('k') | mojo/shell/switches.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 7eb88c7c8e927637a770db8f282d73ad251c6d3c..bffe0ce4c60cff37273996543724caa529f120f2 100644
--- a/mojo/shell/identity.cc
+++ b/mojo/shell/identity.cc
@@ -10,7 +10,8 @@ namespace mojo {
namespace shell {
Identity::Identity(const GURL& url, const std::string& qualifier)
- : url(GetBaseURLAndQuery(url, nullptr)), qualifier(qualifier) {
+ : url(GetBaseURLAndQuery(url, nullptr)),
+ qualifier(qualifier.empty() ? url.spec() : qualifier) {
}
// explicit
« no previous file with comments | « mojo/shell/application_manager.cc ('k') | mojo/shell/switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698