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

Issue 220040: [Mac] Enable "Edit Search Engines" in Omnibox context menu. (Closed)

Created:
11 years, 2 months ago by Scott Hess - ex-Googler
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

[Mac] Enable "Edit Search Engines" in Omnibox context menu. Side effect of making the editor a singleton. http://crbug.com/22512 http://crbug.com/22648 TEST=Right-click in Omnibox, "Edit Search Engines" should bring up the editor. TEST=Right-click in a popu's Omnibox, no such option on menu. TEST=Open prefs, select Basic/Manage, close prefs. Repeat, should not get a second window.

Patch Set 1 #

Total comments: 9

Patch Set 2 : Address rsesek's comments. #

Total comments: 5

Patch Set 3 : Change how global panel is found, add unit tests. #

Patch Set 4 : Previous upload had stow-aways. #

Patch Set 5 : Fix unit test to adapt to leaked windows from previous tests, and cleanup last window. #

Total comments: 12

Patch Set 6 : Cleanup per pink's comments. #

Patch Set 7 : Tiny bit more cleanup. #

Patch Set 8 : Sigh, and a tiny bit more. Please please be everything. #

Total comments: 1

Patch Set 9 : Check for non-empty label rather than non-nil label. #

Patch Set 10 : nop to make sure I'm logging in. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -23 lines) Patch
M chrome/browser/cocoa/autocomplete_text_field_editor.mm View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field_editor_unittest.mm View 1 2 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/cocoa/browser_window_cocoa.mm View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/cocoa/keyword_editor_cocoa_controller.h View 1 2 3 4 5 2 chunks +16 lines, -1 line 0 comments Download
M chrome/browser/cocoa/keyword_editor_cocoa_controller.mm View 1 2 3 4 5 6 2 chunks +54 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/keyword_editor_cocoa_controller_unittest.mm View 3 4 5 6 7 4 chunks +109 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/preferences_window_controller.h View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/cocoa/preferences_window_controller.mm View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -17 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Scott Hess - ex-Googler
Mike, I don't really like going through [NSApp delegate] to get the app controller, but ...
11 years, 2 months ago (2009-09-24 23:31:31 UTC) #1
Scott Hess - ex-Googler
On 2009/09/24 23:31:31, shess wrote: > Mike, I don't really like going through [NSApp delegate] ...
11 years, 2 months ago (2009-09-24 23:39:47 UTC) #2
Robert Sesek
http://codereview.chromium.org/220040/diff/1/3 File chrome/browser/app_controller_mac.mm (right): http://codereview.chromium.org/220040/diff/1/3#newcode712 Line 712: return; When would this happen? NOTREACHED()? http://codereview.chromium.org/220040/diff/1/3#newcode719 Line ...
11 years, 2 months ago (2009-09-24 23:55:10 UTC) #3
Scott Hess - ex-Googler
Ready for another pass... http://codereview.chromium.org/220040/diff/1/3 File chrome/browser/app_controller_mac.mm (right): http://codereview.chromium.org/220040/diff/1/3#newcode712 Line 712: return; On 2009/09/24 23:55:10, ...
11 years, 2 months ago (2009-09-25 19:15:39 UTC) #4
Robert Sesek
LGTM http://codereview.chromium.org/220040/diff/4001/5005 File chrome/browser/cocoa/browser_window_cocoa.mm (right): http://codereview.chromium.org/220040/diff/4001/5005#newcode260 Line 260: #endif I'll leave it to Mike to ...
11 years, 2 months ago (2009-09-26 15:23:28 UTC) #5
pink (ping after 24hrs)
http://codereview.chromium.org/220040/diff/4001/5002 File chrome/browser/app_controller_mac.mm (right): http://codereview.chromium.org/220040/diff/4001/5002#newcode697 Line 697: // Called when the search-engins window is closed. ...
11 years, 2 months ago (2009-09-28 18:21:07 UTC) #6
Scott Hess - ex-Googler
Sorry for the delay. Was thinking on the msg-to-nil versus NSNotification, and looked at the ...
11 years, 2 months ago (2009-09-30 00:25:47 UTC) #7
Scott Hess - ex-Googler
On 2009/09/30 00:25:47, shess wrote: > As a bonus, I got to spend some quality ...
11 years, 2 months ago (2009-09-30 21:21:26 UTC) #8
Scott Hess - ex-Googler
On 2009/09/30 21:21:26, shess wrote: > On 2009/09/30 00:25:47, shess wrote: > > As a ...
11 years, 2 months ago (2009-10-02 18:39:52 UTC) #9
pink (ping after 24hrs)
http://codereview.chromium.org/220040/diff/12002/11002 File chrome/browser/cocoa/autocomplete_text_field_editor.mm (right): http://codereview.chromium.org/220040/diff/12002/11002#newcode111 Line 111: label = l10n_util::GetNSStringWithFixup(IDS_EDIT_SEARCH_ENGINES); is it worth checking that ...
11 years, 2 months ago (2009-10-05 16:01:19 UTC) #10
Scott Hess - ex-Googler
OK, so I hear +1 to having the class manage itself, but -1 to using ...
11 years, 2 months ago (2009-10-05 20:50:45 UTC) #11
pink (ping after 24hrs)
11 years, 2 months ago (2009-10-06 13:39:49 UTC) #12
LGTM

http://codereview.chromium.org/220040/diff/14004/4018
File chrome/browser/cocoa/autocomplete_text_field_editor.mm (right):

http://codereview.chromium.org/220040/diff/14004/4018#newcode112
Line 112: if (label) {
is it also worth checking [label length]?

Powered by Google App Engine
This is Rietveld 408576698