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

Unified Diff: chrome/browser/autocomplete/autocomplete_edit_view_mac.mm

Issue 113275: Address Mike's last complaint about Issue 114017. (Closed)
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_edit_view_mac.mm
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_mac.mm b/chrome/browser/autocomplete/autocomplete_edit_view_mac.mm
index e1a2a53e0ad72fd57de753eb2fc785b11674b643..d66c4cc66650c1b62ad564563ab614693df24cdb 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.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698