Skip to content

Commit

Permalink
Fixed typo for Copy URL command ID.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mad@chromium.org committed Oct 23, 2012
1 parent 98cfdfc commit ae37d4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chrome/browser/ui/views/omnibox/omnibox_view_views.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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);
Expand Down

0 comments on commit ae37d4d

Please sign in to comment.