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

Unified Diff: third_party/WebKit/Source/core/page/CustomContextMenuProvider.cpp

Issue 2502413004: WTF/std normalization: replace WTF::Vector::last with ::back (Closed)
Patch Set: rebase Created 4 years, 1 month 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: third_party/WebKit/Source/core/page/CustomContextMenuProvider.cpp
diff --git a/third_party/WebKit/Source/core/page/CustomContextMenuProvider.cpp b/third_party/WebKit/Source/core/page/CustomContextMenuProvider.cpp
index e3783a32082fae7659a3fe931c2264ac5dea9a16..0b540e9b3709cf71e39864ee00f4e83f96073f81 100644
--- a/third_party/WebKit/Source/core/page/CustomContextMenuProvider.cpp
+++ b/third_party/WebKit/Source/core/page/CustomContextMenuProvider.cpp
@@ -58,7 +58,7 @@ void CustomContextMenuProvider::appendSeparator(ContextMenu& contextMenu) {
// Collapse all sequences of two or more adjacent separators in the menu or
// any submenus to a single separator.
- ContextMenuItem lastItem = contextMenu.items().last();
+ ContextMenuItem lastItem = contextMenu.items().back();
if (lastItem.type() == SeparatorType)
return;
@@ -131,7 +131,7 @@ void CustomContextMenuProvider::populateContextMenuItems(
// Remove separators at the end of the menu and any submenus.
while (contextMenu.items().size() &&
- contextMenu.items().last().type() == SeparatorType)
+ contextMenu.items().back().type() == SeparatorType)
contextMenu.removeLastItem();
}

Powered by Google App Engine
This is Rietveld 408576698