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

Unified Diff: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm
index 2b68af5582a59bf47a20868dde4f9ca0e46d1596..13df962f596edc3cab7c098357919d599949d34b 100644
--- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm
+++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm
@@ -400,13 +400,11 @@ - (void)viewDidMoveToWindow {
// Allow the ToolbarController to take action upon the
// AutocompleteTextField being added to the window.
- if (ui::MaterialDesignController::IsModeMaterial()) {
- BrowserWindowController* browserWindowController =
- [BrowserWindowController browserWindowControllerForView:self];
- [[browserWindowController toolbarController] locationBarWasAddedToWindow];
+ BrowserWindowController* browserWindowController =
+ [BrowserWindowController browserWindowControllerForView:self];
+ [[browserWindowController toolbarController] locationBarWasAddedToWindow];
- [self updateColorsToMatchTheme];
- }
+ [self updateColorsToMatchTheme];
NSNotificationCenter* nc = [NSNotificationCenter defaultCenter];
[nc addObserver:self
@@ -552,10 +550,6 @@ - (ViewID)viewID {
// ThemedWindowDrawing implementation.
- (void)windowDidChangeTheme {
- if (!ui::MaterialDesignController::IsModeMaterial()) {
- return;
- }
-
[self updateColorsToMatchTheme];
}
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698