| Index: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm
|
| diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm
|
| index b4f6d71e8283aa11dec1ab506ea2094795e8f39b..83126cf2e5eee10622c834fac7b0c7ca7142aed2 100644
|
| --- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm
|
| +++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm
|
| @@ -107,8 +107,8 @@ - (void)updateColorsToMatchTheme {
|
| }
|
|
|
| - (void)viewDidMoveToWindow {
|
| - // Only care about landing in a window when in Material Design mode.
|
| - if ([self window] && ui::MaterialDesignController::IsModeMaterial()) {
|
| + // Only care about landing in a window.
|
| + if ([self window]) {
|
| [self updateColorsToMatchTheme];
|
| }
|
| }
|
| @@ -604,9 +604,6 @@ - (void)drawRect:(NSRect)rect {
|
| // ThemedWindowDrawing implementation.
|
|
|
| - (void)windowDidChangeTheme {
|
| - if (!ui::MaterialDesignController::IsModeMaterial()) {
|
| - return;
|
| - }
|
| [self updateColorsToMatchTheme];
|
| }
|
|
|
|
|