| Index: chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
|
| diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
|
| index 1777998887526adcc8cceccf1b949b828f4d40ce..b67a092695ab0939a69153280f27152d7d1a172f 100644
|
| --- a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
|
| +++ b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
|
| @@ -415,6 +415,12 @@ void OmniboxViewMac::EmphasizeURLComponents() {
|
| ApplyTextAttributes(GetText(), storage);
|
|
|
| [storage endEditing];
|
| +
|
| + // This function can be called during the editor's -resignFirstResponder. If
|
| + // that happens, |storage| and |field_| will not be synced automatically any
|
| + // more. Calling -stringValue ensures that |field_| reflects the changes to
|
| + // |storage|.
|
| + [field_ stringValue];
|
| } else {
|
| SetText(GetText());
|
| }
|
|
|