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

Unified Diff: chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm

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
Index: chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm
diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm
index 9cef5fa94b8881782b13833c328a813140648e63..053002fdbc5cef734df541dbc0b3534766aa162b 100644
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm
@@ -527,7 +527,7 @@ NSAttributedString* CreateClassifiedAttributedString(
&contentsStartIndex);
// Ignore invalid state.
if (!base::StartsWith(match.fill_into_edit, inputText, true) ||
- !EndsWith(match.fill_into_edit, match.contents, true) ||
+ !base::EndsWith(match.fill_into_edit, match.contents, true) ||
((size_t)contentsStartIndex >= inputText.length())) {
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698