| Index: shell/application_manager/identity.cc
|
| diff --git a/shell/application_manager/identity.cc b/shell/application_manager/identity.cc
|
| index c40a73cfb03110938054be5f76ad1c7ae7eb100b..cea4a007d7daec794e7159fecaf593fe6cbf58e3 100644
|
| --- a/shell/application_manager/identity.cc
|
| +++ b/shell/application_manager/identity.cc
|
| @@ -8,13 +8,15 @@
|
|
|
| namespace shell {
|
|
|
| -Identity::Identity(const GURL& url, const std::string& qualifier)
|
| - : url(GetBaseURLAndQuery(url, nullptr)), qualifier(qualifier) {
|
| -}
|
| +Identity::Identity(const GURL& url,
|
| + const std::string& qualifier,
|
| + bool with_query)
|
| + : url(with_query ? url : GetBaseURLAndQuery(url, nullptr)),
|
| + qualifier(qualifier) {}
|
|
|
| -Identity::Identity(const GURL& base_url)
|
| - : url(GetBaseURLAndQuery(base_url, nullptr)), qualifier(url.spec()) {
|
| -}
|
| +Identity::Identity(const GURL& base_url, bool with_query)
|
| + : url(with_query ? base_url : GetBaseURLAndQuery(base_url, nullptr)),
|
| + qualifier(url.spec()) {}
|
|
|
| bool Identity::operator<(const Identity& other) const {
|
| if (url != other.url)
|
|
|