diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_edit_view_mac.mm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_mac.mm b/chrome/browser/autocomplete/autocomplete_edit_view_mac.mm index e1a2a53..d66c4cc 100644 --- a/chrome/browser/autocomplete/autocomplete_edit_view_mac.mm +++ b/chrome/browser/autocomplete/autocomplete_edit_view_mac.mm @@ -27,10 +27,12 @@ struct AutocompleteEditViewMacState { }; // Returns a lazily initialized property bag accessor for saving our -// state in a TabContents. +// state in a TabContents. When constructed |accessor| generates a +// globally-unique id used to index into the per-tab PropertyBag used +// to store the state data. PropertyAccessor<AutocompleteEditViewMacState>* GetStateAccessor() { - static PropertyAccessor<AutocompleteEditViewMacState> state; - return &state; + static PropertyAccessor<AutocompleteEditViewMacState> accessor; + return &accessor; } // Accessors for storing and getting the state from the tab. |