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

Unified Diff: services/python/content_handler/content_handler_main.cc

Issue 1641513004: Update //base to chromium 9659b08ea5a34f889dc4166217f438095ddc10d2 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 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: services/python/content_handler/content_handler_main.cc
diff --git a/services/python/content_handler/content_handler_main.cc b/services/python/content_handler/content_handler_main.cc
index d05de8bdcb788c88cc6f68e6c16a999619ba1e2d..1f21f003cc7ee8a468e98ec63c594b4879693ce6 100644
--- a/services/python/content_handler/content_handler_main.cc
+++ b/services/python/content_handler/content_handler_main.cc
@@ -8,7 +8,7 @@
#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
#include "base/i18n/icu_util.h"
-#include "base/strings/string_util.h"
+#include "base/strings/string_split.h"
#include "base/strings/stringprintf.h"
#include "mojo/application/application_runner_chromium.h"
#include "mojo/application/content_handler_factory.h"
@@ -224,8 +224,8 @@ class PythonContentHandlerApp : public ApplicationDelegate {
bool IsDebug(const std::string& requestedUrl) {
GURL url(requestedUrl);
if (url.has_query()) {
- std::vector<std::string> query_parameters;
- Tokenize(url.query(), "&", &query_parameters);
+ std::vector<std::string> query_parameters = base::SplitString(
+ url.query(), "&", base::KEEP_WHITESPACE, base::SPLIT_WANT_NONEMPTY);
return std::find(query_parameters.begin(), query_parameters.end(),
"debug=true") != query_parameters.end();
}
« no previous file with comments | « services/dart/content_handler_main.cc ('k') | services/url_response_disk_cache/url_response_disk_cache_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698