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

Unified Diff: shell/application_manager/identity.cc

Issue 1472923002: Allows URL queries to be passed to contet handlers. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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
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)
« shell/application_manager/identity.h ('K') | « shell/application_manager/identity.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698