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

Unified Diff: chrome/browser/ui/views/infobars/confirm_infobar.cc

Issue 1777813002: MD - use new style of text button in infobars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/views/infobars/infobar_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/infobars/confirm_infobar.cc
diff --git a/chrome/browser/ui/views/infobars/confirm_infobar.cc b/chrome/browser/ui/views/infobars/confirm_infobar.cc
index 7deab920a909a4ca9fb773992c4385d3b442ac26..3bfee35930d1fab53ee521823a41991473896d9f 100644
--- a/chrome/browser/ui/views/infobars/confirm_infobar.cc
+++ b/chrome/browser/ui/views/infobars/confirm_infobar.cc
@@ -72,7 +72,7 @@ void ConfirmInfoBar::ViewHierarchyChanged(
if (delegate->GetButtons() & ConfirmInfoBarDelegate::BUTTON_OK) {
if (delegate->OKButtonTriggersUACPrompt()) {
// Use a label button even in MD mode as MD buttons don't support icons.
Peter Kasting 2016/03/09 07:18:10 Has this been fixed? We do still want the button
Evan Stade 2016/03/10 02:41:42 Right, good call, comment removed and code cleaned
- views::LabelButton* ok_button = CreateLabelButton(
+ views::LabelButton* ok_button = CreateTextButton(
this, delegate->GetButtonLabel(ConfirmInfoBarDelegate::BUTTON_OK));
elevation_icon_setter_.reset(new ElevationIconSetter(
ok_button,
« no previous file with comments | « no previous file | chrome/browser/ui/views/infobars/infobar_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698