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

Unified Diff: services/dart/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/dart/content_handler_main.cc
diff --git a/services/dart/content_handler_main.cc b/services/dart/content_handler_main.cc
index 4d73d83ffad1abda22cdad712ec2f714d3c4446c..84c723aae93561a22038c1c95266e28d1e9d0938 100644
--- a/services/dart/content_handler_main.cc
+++ b/services/dart/content_handler_main.cc
@@ -5,7 +5,7 @@
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
-#include "base/strings/string_util.h"
+#include "base/strings/string_split.h"
#include "base/synchronization/waitable_event.h"
#include "base/threading/platform_thread.h"
#include "base/trace_event/trace_event.h"
@@ -36,7 +36,7 @@ const char kRunOnMessageLoop[] = "--run-on-message-loop";
static bool IsDartZip(std::string url) {
// If the url doesn't end with ".dart" we assume it is a zipped up
// dart application.
- return !EndsWith(url, ".dart", false);
+ return !base::EndsWith(url, ".dart", base::CompareCase::INSENSITIVE_ASCII);
}
class DartContentHandlerApp;
@@ -158,8 +158,8 @@ class DartContentHandlerApp : public mojo::ApplicationDelegate {
bool strict_compilation = false;
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);
strict_compilation =
std::find(query_parameters.begin(), query_parameters.end(),
"strict=true") != query_parameters.end();

Powered by Google App Engine
This is Rietveld 408576698