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

Unified Diff: content/browser/accessibility/android_granularity_movement_browsertest.cc

Issue 1233043003: Remove some legacy versions of StartsWith and EndsWith. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « components/wifi/wifi_service_win.cc ('k') | content/browser/plugin_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/android_granularity_movement_browsertest.cc
diff --git a/content/browser/accessibility/android_granularity_movement_browsertest.cc b/content/browser/accessibility/android_granularity_movement_browsertest.cc
index 392c26289bc936417edc5673b0ee5e582a51cd99..6ddf830423ed64675cae93d9663957380b98e813 100644
--- a/content/browser/accessibility/android_granularity_movement_browsertest.cc
+++ b/content/browser/accessibility/android_granularity_movement_browsertest.cc
@@ -91,7 +91,8 @@ class AndroidGranularityMovementBrowserTest : public ContentBrowserTest {
int len = (granularity == GRANULARITY_CHARACTER) ?
1 : end_index - start_index;
base::string16 selection = text.substr(start_index, len);
- if (base::EndsWith(selection, base::ASCIIToUTF16("\n"), false))
+ if (base::EndsWith(selection, base::ASCIIToUTF16("\n"),
+ base::CompareCase::INSENSITIVE_ASCII))
selection.erase(selection.size() - 1);
if (!selection.empty()) {
if (!concatenated.empty())
@@ -116,7 +117,8 @@ class AndroidGranularityMovementBrowserTest : public ContentBrowserTest {
int len = (granularity == GRANULARITY_CHARACTER) ?
1 : end_index - start_index;
base::string16 selection = text.substr(start_index, len);
- if (base::EndsWith(selection, base::ASCIIToUTF16("\n"), false))
+ if (base::EndsWith(selection, base::ASCIIToUTF16("\n"),
+ base::CompareCase::INSENSITIVE_ASCII))
selection = selection.substr(0, selection.size() - 1);
if (!reverse.empty())
reverse = base::ASCIIToUTF16(", ") + reverse;
« no previous file with comments | « components/wifi/wifi_service_win.cc ('k') | content/browser/plugin_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698