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

Unified Diff: chrome/browser/ui/views/password_generation_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/password_generation_bubble_view.cc
diff --git a/chrome/browser/ui/views/password_generation_bubble_view.cc b/chrome/browser/ui/views/password_generation_bubble_view.cc
index a59c598caf4a32a043e426acf33a085103f2a044..99e32cecf3cacc23b81396cf49dacc4260a6bb0d 100644
--- a/chrome/browser/ui/views/password_generation_bubble_view.cc
+++ b/chrome/browser/ui/views/password_generation_bubble_view.cc
@@ -24,7 +24,7 @@
#include "ui/gfx/canvas.h"
#include "ui/views/border.h"
#include "ui/views/controls/button/image_button.h"
-#include "ui/views/controls/button/text_button.h"
+#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/label.h"
#include "ui/views/controls/link.h"
#include "ui/views/controls/textfield/textfield.h"
@@ -175,9 +175,10 @@ void PasswordGenerationBubbleView::Init() {
regenerate_button_);
AddChildView(textfield_wrapper_);
- accept_button_ = new views::NativeTextButton(
+ accept_button_ = new views::LabelButton(
this,
l10n_util::GetStringUTF16(IDS_PASSWORD_GENERATION_BUTTON_TEXT));
+ accept_button_->SetStyle(views::Button::STYLE_NATIVE_TEXTBUTTON);
AddChildView(accept_button_);
}
« no previous file with comments | « chrome/browser/ui/views/password_generation_bubble_view.h ('k') | chrome/browser/ui/views/speech_recognition_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698