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

Issue 114017: Use Chrome facilities for omnibox state save and restore on Mac. (Closed)

Created:
11 years, 7 months ago by Scott Hess - ex-Googler
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, rohitrao (ping after 24h), Dean McNamee
Visibility:
Public.

Description

Use Chrome facilities for omnibox state save and restore on Mac. TabContents has a facility for storing a bag of stuff across current-tab changes. Wire up AutocompleteEditViewMac to use that facility. Unfork some code in Browser::TabSelectedAt() so that the new code gets used, and straighten up the Mac code along the code path between there and AutocompleteEditViewMac. This overall change also exposed a couple bugs/mis-features in the AutocompleteEditViewMac code. TEST=Text field maintains contents and selection across tab changes, even when edited.

Patch Set 1 #

Patch Set 2 : Some last-minute cleanup. #

Patch Set 3 : Wordsmithing. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -51 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit_view_mac.h View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_view_mac.mm View 1 2 8 chunks +115 lines, -16 lines 3 comments Download
M chrome/browser/browser.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/cocoa/browser_window_controller.mm View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/cocoa/location_bar_view_mac.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/location_bar_view_mac.mm View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/toolbar_controller.h View 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/browser/cocoa/toolbar_controller.mm View 2 chunks +3 lines, -22 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Scott Hess - ex-Googler
Mike, throwing this to you because your name is all over the relevant cocoa/*.mm files.
11 years, 7 months ago (2009-05-08 20:40:42 UTC) #1
pink (ping after 24hrs)
LGTM, save for the interdependencies i whined about on irc (which I filed for later ...
11 years, 7 months ago (2009-05-08 21:18:25 UTC) #2
Scott Hess - ex-Googler
http://codereview.chromium.org/114017/diff/1010/2002 File chrome/browser/autocomplete/autocomplete_edit_view_mac.mm (right): http://codereview.chromium.org/114017/diff/1010/2002#newcode32 Line 32: static PropertyAccessor<AutocompleteEditViewMacState> state; On 2009/05/08 21:18:26, pink wrote: ...
11 years, 7 months ago (2009-05-08 22:50:21 UTC) #3
pink (ping after 24hrs)
11 years, 7 months ago (2009-05-11 13:50:11 UTC) #4
still lgtm

http://codereview.chromium.org/114017/diff/1010/2002
File chrome/browser/autocomplete/autocomplete_edit_view_mac.mm (right):

http://codereview.chromium.org/114017/diff/1010/2002#newcode32
Line 32: static PropertyAccessor<AutocompleteEditViewMacState> state;
I figured it was something like this. Maybe a comment to this effect? Still
LGTM.

Powered by Google App Engine
This is Rietveld 408576698