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

Unified Diff: chrome/browser/ui/views/location_bar/zoom_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: one more fix in one_click_signin_bubble_view.cc Created 7 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
Index: chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
diff --git a/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc b/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
index 392e02adc9733e954fdaf90640386a4872daf60f..983620ce42a4a3fb35cd20841dd1ff30a78dd6f5 100644
--- a/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
+++ b/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
@@ -19,6 +19,7 @@
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
+#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/separator.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/layout_constants.h"
@@ -201,9 +202,9 @@ void ZoomBubbleView::Init() {
ResourceBundle::GetSharedInstance().GetFont(ResourceBundle::MediumFont));
AddChildView(label_);
- views::NativeTextButton* set_default_button = new views::NativeTextButton(
+ views::LabelButton* set_default_button = new views::LabelButton(
this, l10n_util::GetStringUTF16(IDS_ZOOM_SET_DEFAULT));
- set_default_button->set_alignment(views::TextButtonBase::ALIGN_CENTER);
+ set_default_button->SetHorizontalAlignment(gfx::ALIGN_CENTER);
msw 2013/04/04 02:31:03 Add set_default_button->SetStyle(views::Button::ST
tfarina 2013/04/04 22:36:52 Done.
AddChildView(set_default_button);
StartTimerIfNecessary();

Powered by Google App Engine
This is Rietveld 408576698