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

Unified Diff: chrome/renderer/extensions/webstore_bindings.cc

Issue 1220963005: Update base::StartsWith calls to new form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@starts_with
Patch Set: Created 5 years, 6 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: chrome/renderer/extensions/webstore_bindings.cc
diff --git a/chrome/renderer/extensions/webstore_bindings.cc b/chrome/renderer/extensions/webstore_bindings.cc
index a7b4b1c4751922b622fb4cc6079d2a22872162d0..ab4c66e399c96bfb05882e1e6c3ab7fd4b878110 100644
--- a/chrome/renderer/extensions/webstore_bindings.cc
+++ b/chrome/renderer/extensions/webstore_bindings.cc
@@ -160,8 +160,8 @@ bool WebstoreBindings::GetWebstoreItemIdFromFrame(
if (webstore_url.scheme() != webstore_base_url.scheme() ||
webstore_url.host() != webstore_base_url.host() ||
- !base::StartsWithASCII(webstore_url.path(), webstore_base_url.path(),
- true)) {
+ !base::StartsWith(webstore_url.path(), webstore_base_url.path(),
+ base::CompareCase::SENSITIVE)) {
*error = kInvalidWebstoreItemUrlError;
return false;
}

Powered by Google App Engine
This is Rietveld 408576698