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

Unified Diff: shell/application_manager/application_manager.cc

Issue 972473003: Strip query string before applying url mapping. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
Index: shell/application_manager/application_manager.cc
diff --git a/shell/application_manager/application_manager.cc b/shell/application_manager/application_manager.cc
index 5f66af5dd076304f49be1dcde959f579b656c9f3..bc4759513befc6fa76e858b1ea69b0f3a4511608 100644
--- a/shell/application_manager/application_manager.cc
+++ b/shell/application_manager/application_manager.cc
@@ -19,6 +19,7 @@
#include "shell/application_manager/fetcher.h"
#include "shell/application_manager/local_fetcher.h"
#include "shell/application_manager/network_fetcher.h"
+#include "shell/application_manager/query_util.h"
namespace mojo {
@@ -26,16 +27,6 @@ namespace {
// Used by TestAPI.
bool has_created_instance = false;
-GURL StripQueryFromURL(const GURL& url) {
- GURL::Replacements repl;
- repl.SetQueryStr("");
- std::string result = url.ReplaceComponents(repl).spec();
-
- // Remove the dangling '?' because it's ugly.
- base::ReplaceChars(result, "?", "", &result);
- return GURL(result);
-}
-
} // namespace
ApplicationManager::Delegate::~Delegate() {

Powered by Google App Engine
This is Rietveld 408576698