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

Unified Diff: chrome/browser/ui/views/collected_cookies_views.cc

Issue 1958453002: Update some secondary UI buttons to MD style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: msw review 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/collected_cookies_views.cc
diff --git a/chrome/browser/ui/views/collected_cookies_views.cc b/chrome/browser/ui/views/collected_cookies_views.cc
index fb76417d7b61ac2656e09052aa8bf25656fb851b..a4e90622cfdfaef9c09ee6a3a405e8f011786eaf 100644
--- a/chrome/browser/ui/views/collected_cookies_views.cc
+++ b/chrome/browser/ui/views/collected_cookies_views.cc
@@ -37,7 +37,7 @@
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/color_utils.h"
#include "ui/views/border.h"
-#include "ui/views/controls/button/label_button.h"
+#include "ui/views/controls/button/md_text_button.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/controls/label.h"
#include "ui/views/controls/scroll_view.h"
@@ -342,13 +342,11 @@ views::View* CollectedCookiesViews::CreateAllowedPane() {
allowed_cookies_tree_->set_auto_expand_children(true);
allowed_cookies_tree_->SetController(this);
- block_allowed_button_ = new views::LabelButton(this,
+ block_allowed_button_ = views::MdTextButton::CreateSecondaryUiButton(this,
l10n_util::GetStringUTF16(IDS_COLLECTED_COOKIES_BLOCK_BUTTON));
- block_allowed_button_->SetStyle(views::Button::STYLE_BUTTON);
- delete_allowed_button_ = new views::LabelButton(this,
+ delete_allowed_button_ = views::MdTextButton::CreateSecondaryUiButton(this,
l10n_util::GetStringUTF16(IDS_COOKIES_REMOVE_LABEL));
- delete_allowed_button_->SetStyle(views::Button::STYLE_BUTTON);
// Create the view that holds all the controls together. This will be the
// pane added to the tabbed pane.
@@ -416,12 +414,11 @@ views::View* CollectedCookiesViews::CreateBlockedPane() {
blocked_cookies_tree_->set_auto_expand_children(true);
blocked_cookies_tree_->SetController(this);
- allow_blocked_button_ = new views::LabelButton(this,
- l10n_util::GetStringUTF16(IDS_COLLECTED_COOKIES_ALLOW_BUTTON));
- allow_blocked_button_->SetStyle(views::Button::STYLE_BUTTON);
- for_session_blocked_button_ = new views::LabelButton(this,
+ allow_blocked_button_ = views::MdTextButton::CreateSecondaryUiButton(
+ this, l10n_util::GetStringUTF16(IDS_COLLECTED_COOKIES_ALLOW_BUTTON));
+ for_session_blocked_button_ = views::MdTextButton::CreateSecondaryUiButton(
+ this,
l10n_util::GetStringUTF16(IDS_COLLECTED_COOKIES_SESSION_ONLY_BUTTON));
- for_session_blocked_button_->SetStyle(views::Button::STYLE_BUTTON);
// Create the view that holds all the controls together. This will be the
// pane added to the tabbed pane.
« no previous file with comments | « chrome/browser/ui/views/certificate_selector.cc ('k') | chrome/browser/ui/views/download/download_item_view_md.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698