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

Unified Diff: chrome/browser/ui/views/download/download_item_view_md.cc

Issue 1926943002: Introduce new flag to control usage of MD in secondary (not top-chrome) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new fn name Created 4 years, 7 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/views/download/download_item_view_md.cc
diff --git a/chrome/browser/ui/views/download/download_item_view_md.cc b/chrome/browser/ui/views/download/download_item_view_md.cc
index 980174fcaa2d60f1940215390dc16138d8eb0e99..6222e832d0d982fa1479261db0de32e583a42d0c 100644
--- a/chrome/browser/ui/views/download/download_item_view_md.cc
+++ b/chrome/browser/ui/views/download/download_item_view_md.cc
@@ -948,14 +948,14 @@ void DownloadItemViewMd::ShowWarningDialog() {
dropdown_state_ = NORMAL;
if (mode_ == DANGEROUS_MODE) {
- save_button_ = views::MdTextButton::CreateStandardButton(
+ save_button_ = views::MdTextButton::CreateMdButton(
this, model_.GetWarningConfirmButtonText());
save_button_->SetStyle(views::Button::STYLE_BUTTON);
AddChildView(save_button_);
}
int discard_button_message =
model_.IsMalicious() ? IDS_DISMISS_DOWNLOAD : IDS_DISCARD_DOWNLOAD;
- discard_button_ = views::MdTextButton::CreateStandardButton(
+ discard_button_ = views::MdTextButton::CreateMdButton(
this, l10n_util::GetStringUTF16(discard_button_message));
discard_button_->SetStyle(views::Button::STYLE_BUTTON);
AddChildView(discard_button_);
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc ('k') | ui/base/material_design/material_design_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698