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

Unified Diff: chrome/browser/ui/cocoa/location_bar/translate_decoration.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/translate_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/translate_decoration.mm b/chrome/browser/ui/cocoa/location_bar/translate_decoration.mm
index 455ca6c345bbdc707c1560c0ce6e16e01892b614..983ad820901a8a5d95726cc2ba4a3f2edb7a41aa 100644
--- a/chrome/browser/ui/cocoa/location_bar/translate_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/translate_decoration.mm
@@ -20,11 +20,6 @@
TranslateDecoration::~TranslateDecoration() {}
void TranslateDecoration::SetLit(bool on, bool location_bar_is_dark) {
- if (!ui::MaterialDesignController::IsModeMaterial()) {
- const int image_id = on ? IDR_TRANSLATE_ACTIVE : IDR_TRANSLATE;
- SetImage(OmniboxViewMac::ImageForResource(image_id));
- return;
- }
SetImage(GetMaterialIcon(location_bar_is_dark));
}
« no previous file with comments | « chrome/browser/ui/cocoa/location_bar/star_decoration.mm ('k') | chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698