From ae37d4dffbd78331fd368db9950ae2a3067be455 Mon Sep 17 00:00:00 2001 From: "mad@chromium.org" Date: Tue, 23 Oct 2012 18:13:07 +0000 Subject: [PATCH] Fixed typo for Copy URL command ID. BUG=135106 TBR=pkasting@chromium.org for OWNERS approval... Review URL: https://chromiumcodereview.appspot.com/11227054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163604 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/ui/views/omnibox/omnibox_view_views.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc index 23f588b7594ae9..f87d77a54f686c 100644 --- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc +++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc @@ -837,7 +837,7 @@ void OmniboxViewViews::UpdateContextMenu(ui::SimpleMenuModel* menu_contents) { bool OmniboxViewViews::IsCommandIdEnabled(int command_id) const { if (command_id == IDS_PASTE_AND_GO) return model()->CanPasteAndGo(GetClipboardText()); - if (command_id == IDS_COPY_URL) { + if (command_id == IDC_COPY_URL) { return toolbar_model()->WouldReplaceSearchURLWithSearchTerms() && !model()->user_input_in_progress(); } @@ -861,7 +861,7 @@ string16 OmniboxViewViews::GetLabelForCommandId(int command_id) const { void OmniboxViewViews::ExecuteCommand(int command_id) { if (command_id == IDS_PASTE_AND_GO) model()->PasteAndGo(GetClipboardText()); - else if (command_id == IDS_COPY_URL) + else if (command_id == IDC_COPY_URL) CopyURL(); else command_updater()->ExecuteCommand(command_id);