Index: chrome/browser/cocoa/autocomplete_text_field.h |
diff --git a/chrome/browser/cocoa/autocomplete_text_field.h b/chrome/browser/cocoa/autocomplete_text_field.h |
index 58e514c435656670588b1261e3aaa05af1df9e3b..c101eed2d989ee82497083291029d00abd5edb24 100644 |
--- a/chrome/browser/cocoa/autocomplete_text_field.h |
+++ b/chrome/browser/cocoa/autocomplete_text_field.h |
@@ -77,6 +77,11 @@ class AutocompleteTextFieldObserver { |
// enough to scroll. |
- (CGFloat)availableDecorationWidth; |
+// Superclass aborts editing before changing the string, which causes |
+// problems for undo. This version modifies the field editor's |
+// contents if the control is already being edited. |
+- (void)setAttributedStringValue:(NSAttributedString*)aString; |
+ |
@end |
#endif // CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ |