diff options
Diffstat (limited to 'chrome/browser/tab_contents/render_view_context_menu.cc')
-rw-r--r-- | chrome/browser/tab_contents/render_view_context_menu.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc index a25efa8..19cb00e 100644 --- a/chrome/browser/tab_contents/render_view_context_menu.cc +++ b/chrome/browser/tab_contents/render_view_context_menu.cc @@ -362,7 +362,7 @@ void RenderViewContextMenu::RecursivelyAppendExtensionItems( ExtensionMenuItem::List children = GetRelevantExtensionItems(item->children(), params_, profile_, can_cross_incognito); - if (children.size() == 0) { + if (children.empty()) { menu_model->AddItem(menu_id, title); } else { ui::SimpleMenuModel* submenu = new ui::SimpleMenuModel(this); @@ -720,7 +720,7 @@ void RenderViewContextMenu::AppendEditableItems() { // If word is misspelled, give option for "Add to dictionary" if (!params_.misspelled_word.empty()) { - if (params_.dictionary_suggestions.size() == 0) { + if (params_.dictionary_suggestions.empty()) { menu_model_.AddItem(0, l10n_util::GetStringUTF16( IDS_CONTENT_CONTEXT_NO_SPELLING_SUGGESTIONS)); |