| 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();
|
| }
|
|
|