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

Unified Diff: chrome/browser/chromeos/options/wifi_config_view.cc

Issue 15682004: Remove the network config dialog extra border. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Also fix the network config view titles. Created 7 years, 7 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/chromeos/options/wifi_config_view.cc
diff --git a/chrome/browser/chromeos/options/wifi_config_view.cc b/chrome/browser/chromeos/options/wifi_config_view.cc
index 9559ca63a5c17e31c06b810c5c3d7db4553a56e7..2ee2c1038c40ab41dda5b8e86b30218560def2e7 100644
--- a/chrome/browser/chromeos/options/wifi_config_view.cc
+++ b/chrome/browser/chromeos/options/wifi_config_view.cc
@@ -377,6 +377,10 @@ WifiConfigView::~WifiConfigView() {
CertLibrary::Get()->RemoveObserver(this);
}
+string16 WifiConfigView::GetTitle() const {
+ return l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_JOIN_WIFI_NETWORKS);
+}
+
views::View* WifiConfigView::GetInitiallyFocusedView() {
// Return a reasonable widget for initial focus,
// depending on what we're showing.
@@ -889,15 +893,6 @@ void WifiConfigView::Init(WifiNetwork* wifi, bool show_8021x) {
column_set->AddColumn(views::GridLayout::CENTER, views::GridLayout::FILL, 1,
views::GridLayout::USE_PREF, 0, kPasswordVisibleWidth);
- // Title
- layout->StartRow(0, column_view_set_id);
- views::Label* title = new views::Label(l10n_util::GetStringUTF16(
- IDS_OPTIONS_SETTINGS_JOIN_WIFI_NETWORKS));
- ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
- title->SetFont(rb.GetFont(ui::ResourceBundle::MediumFont));
- layout->AddView(title, 5, 1);
- layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing);
-
// SSID input
layout->StartRow(0, column_view_set_id);
layout->AddView(new views::Label(l10n_util::GetStringUTF16(
« no previous file with comments | « chrome/browser/chromeos/options/wifi_config_view.h ('k') | chrome/browser/chromeos/options/wimax_config_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698