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

Unified Diff: chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm

Issue 2928333002: Mac:Dont always enable findbar buttons when restoring focus with search string (Closed)
Patch Set: Add unit tests for find in bar button enablement on Mac. Created 3 years, 6 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 | « chrome/browser/ui/cocoa/find_bar/find_bar_browsertest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm
diff --git a/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm b/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm
index 70013f041d886eb5aa94239a9046d75455f96ab7..22c5209a0cc98ef37db59589643dc6dab1c1b086 100644
--- a/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm
+++ b/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm
@@ -362,11 +362,6 @@ const int kMaxCharacters = 4000;
- (void)setFocusAndSelection {
[[findText_ window] makeFirstResponder:findText_];
-
- // Enable the buttons if the find text is non-empty.
rohitrao (ping after 24h) 2017/06/26 13:20:15 Here's a case that appears to have regressed with
- BOOL buttonsEnabled = ([[findText_ stringValue] length] > 0) ? YES : NO;
rohitrao (ping after 24h) 2017/06/26 13:20:15 So it seems that this function is called from at l
carloschilazo 2017/06/28 22:50:22 Thanks for looking into it Rohit! I agree, we need
- [previousButton_ setEnabled:buttonsEnabled];
- [nextButton_ setEnabled:buttonsEnabled];
}
- (void)restoreSavedFocus {
« no previous file with comments | « chrome/browser/ui/cocoa/find_bar/find_bar_browsertest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698