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

Unified Diff: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm

Issue 2375033002: cocoa browser: remove non-MD location bar support (Closed)
Patch Set: fix nits Created 4 years, 3 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
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];
}

Powered by Google App Engine
This is Rietveld 408576698