| Index: chrome/browser/cocoa/autocomplete_text_field_editor.mm
|
| diff --git a/chrome/browser/cocoa/autocomplete_text_field_editor.mm b/chrome/browser/cocoa/autocomplete_text_field_editor.mm
|
| index 8bb2e8a0b95a15ba681b55a7621f0b1422d91a54..35c707ec96adbbe0c5707b410ca24ae0b84b2f0d 100644
|
| --- a/chrome/browser/cocoa/autocomplete_text_field_editor.mm
|
| +++ b/chrome/browser/cocoa/autocomplete_text_field_editor.mm
|
| @@ -8,6 +8,7 @@
|
| #include "base/string_util.h"
|
| #include "grit/generated_resources.h"
|
| #include "base/sys_string_conversions.h"
|
| +#include "chrome/app/chrome_dll_resource.h" // IDC_*
|
| #import "chrome/browser/cocoa/autocomplete_text_field.h"
|
|
|
| @implementation AutocompleteTextFieldEditor
|
| @@ -100,11 +101,21 @@
|
|
|
| // TODO(rohitrao): If the clipboard is empty, should we show a
|
| // greyed-out "Paste and Go" or nothing at all?
|
| - if (label) {
|
| + if ([label length]) {
|
| [menu addItemWithTitle:label
|
| action:@selector(pasteAndGo:)
|
| keyEquivalent:@""];
|
| }
|
| +
|
| + label = l10n_util::GetNSStringWithFixup(IDS_EDIT_SEARCH_ENGINES);
|
| + DCHECK([label length]);
|
| + if ([label length]) {
|
| + [menu addItem:[NSMenuItem separatorItem]];
|
| + NSMenuItem* item = [menu addItemWithTitle:label
|
| + action:@selector(commandDispatch:)
|
| + keyEquivalent:@""];
|
| + [item setTag:IDC_EDIT_SEARCH_ENGINES];
|
| + }
|
| }
|
| }
|
|
|
|
|