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 |