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

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

Issue 1182183003: Move EndsWith to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« 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 b24fa7578962529a5a9a5d849ffc1ccf32a57656..392c26289bc936417edc5673b0ee5e582a51cd99 100644
--- a/content/browser/accessibility/android_granularity_movement_browsertest.cc
+++ b/content/browser/accessibility/android_granularity_movement_browsertest.cc
@@ -91,7 +91,7 @@ class AndroidGranularityMovementBrowserTest : public ContentBrowserTest {
int len = (granularity == GRANULARITY_CHARACTER) ?
1 : end_index - start_index;
base::string16 selection = text.substr(start_index, len);
- if (EndsWith(selection, base::ASCIIToUTF16("\n"), false))
+ if (base::EndsWith(selection, base::ASCIIToUTF16("\n"), false))
selection.erase(selection.size() - 1);
if (!selection.empty()) {
if (!concatenated.empty())
@@ -116,7 +116,7 @@ class AndroidGranularityMovementBrowserTest : public ContentBrowserTest {
int len = (granularity == GRANULARITY_CHARACTER) ?
1 : end_index - start_index;
base::string16 selection = text.substr(start_index, len);
- if (EndsWith(selection, base::ASCIIToUTF16("\n"), false))
+ if (base::EndsWith(selection, base::ASCIIToUTF16("\n"), false))
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