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

Unified Diff: chrome/browser/first_run/try_chrome_dialog_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
« no previous file with comments | « no previous file | chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/first_run/try_chrome_dialog_view.cc
diff --git a/chrome/browser/first_run/try_chrome_dialog_view.cc b/chrome/browser/first_run/try_chrome_dialog_view.cc
index 71ad39c8cbe445bc663d3110a2be1f3bd834cb74..114628c41a8074c6e57b0f747e0565424c30bb07 100644
--- a/chrome/browser/first_run/try_chrome_dialog_view.cc
+++ b/chrome/browser/first_run/try_chrome_dialog_view.cc
@@ -21,8 +21,8 @@
#include "ui/gfx/image/image.h"
#include "ui/views/controls/button/checkbox.h"
#include "ui/views/controls/button/image_button.h"
+#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/button/radio_button.h"
-#include "ui/views/controls/button/text_button.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/controls/link.h"
#include "ui/views/controls/separator.h"
@@ -229,8 +229,9 @@ TryChromeDialogView::Result TryChromeDialogView::ShowModal(
layout->AddView(kill_chrome_);
}
- views::Button* accept_button = new views::NativeTextButton(
+ views::LabelButton* accept_button = new views::LabelButton(
this, l10n_util::GetStringUTF16(IDS_OK));
+ accept_button->SetStyle(views::Button::STYLE_NATIVE_TEXTBUTTON);
accept_button->set_tag(BT_OK_BUTTON);
views::Separator* separator = NULL;
@@ -257,8 +258,9 @@ TryChromeDialogView::Result TryChromeDialogView::ShowModal(
if (dont_bug_me_button) {
// The dialog needs a "Don't bug me" as a button or as a radio button,
// this the button case.
- views::Button* cancel_button = new views::NativeTextButton(
+ views::LabelButton* cancel_button = new views::LabelButton(
this, l10n_util::GetStringUTF16(IDS_TRY_TOAST_CANCEL));
+ cancel_button->SetStyle(views::Button::STYLE_NATIVE_TEXTBUTTON);
cancel_button->set_tag(BT_CLOSE_BUTTON);
layout->AddView(cancel_button);
}
« no previous file with comments | « no previous file | chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698