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

Unified Diff: chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm

Issue 184783007: [rAC, OSX] Fix Omnibox font issue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Oops. Removed two extraneous lines Created 6 years, 9 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/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());
}
« 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