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

Unified Diff: chrome/browser/ui/views/network_profile_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/network_profile_bubble_view.cc
diff --git a/chrome/browser/ui/views/network_profile_bubble_view.cc b/chrome/browser/ui/views/network_profile_bubble_view.cc
index a14fae26f50a7938b62eb792f8d5541b7241c8d8..b46f5e780686747a8d501a0c3ba4768584af45d9 100644
--- a/chrome/browser/ui/views/network_profile_bubble_view.cc
+++ b/chrome/browser/ui/views/network_profile_bubble_view.cc
@@ -14,6 +14,7 @@
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
+#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/label.h"
#include "ui/views/controls/link.h"
#include "ui/views/layout/grid_layout.h"
@@ -103,8 +104,9 @@ void NetworkProfileBubbleView::Init() {
learn_more->set_listener(this);
layout->AddView(learn_more);
- views::NativeTextButton* ok_button = new views::NativeTextButton(
+ views::LabelButton* ok_button = new views::LabelButton(
this, l10n_util::GetStringUTF16(IDS_OK));
+ ok_button->SetStyle(views::Button::STYLE_NATIVE_TEXTBUTTON);
ok_button->SetIsDefault(true);
layout->AddView(ok_button);
}
« no previous file with comments | « chrome/browser/ui/views/location_bar/zoom_bubble_view.cc ('k') | chrome/browser/ui/views/open_pdf_in_reader_bubble_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698