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

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

Issue 13584010: views: Migrate the cases of "new .*NativeTextButton(" to LabelButton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: back out the changes to one_click_signin_bubble_view.* Created 7 years, 8 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/outdated_upgrade_bubble_view.cc
diff --git a/chrome/browser/ui/views/outdated_upgrade_bubble_view.cc b/chrome/browser/ui/views/outdated_upgrade_bubble_view.cc
index 323f0d156397f328e7cd4f24fde83dfca9aa093a..b947cd979e10c6b85fc48f81c6173802ff96ef8e 100644
--- a/chrome/browser/ui/views/outdated_upgrade_bubble_view.cc
+++ b/chrome/browser/ui/views/outdated_upgrade_bubble_view.cc
@@ -14,7 +14,7 @@
#include "grit/theme_resources.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
-#include "ui/views/controls/button/text_button.h"
+#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/controls/label.h"
#include "ui/views/layout/grid_layout.h"
@@ -93,13 +93,15 @@ void OutdatedUpgradeBubbleView::WindowClosing() {
void OutdatedUpgradeBubbleView::Init() {
string16 product_name(l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME));
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
- reinstall_button_ = new views::NativeTextButton(
+ reinstall_button_ = new views::LabelButton(
this, l10n_util::GetStringFUTF16(IDS_REINSTALL_APP, product_name));
+ reinstall_button_->SetStyle(views::Button::STYLE_NATIVE_TEXTBUTTON);
reinstall_button_->SetIsDefault(true);
reinstall_button_->SetFont(rb.GetFont(ui::ResourceBundle::BoldFont));
- later_button_ = new views::NativeTextButton(
+ later_button_ = new views::LabelButton(
this, l10n_util::GetStringUTF16(IDS_LATER));
+ later_button_->SetStyle(views::Button::STYLE_NATIVE_TEXTBUTTON);
views::Label* title_label = new views::Label(
l10n_util::GetStringFUTF16(IDS_UPGRADE_BUBBLE_TITLE, product_name));
« no previous file with comments | « chrome/browser/ui/views/outdated_upgrade_bubble_view.h ('k') | chrome/browser/ui/views/password_generation_bubble_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698