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

Side by Side Diff: chrome/browser/chromeos/profiles/multiprofiles_intro_dialog.cc

Issue 2208773002: Remove a couple uses of LabelButton::SetFontList (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | ui/views/touchui/touch_selection_menu_runner_views.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/profiles/multiprofiles_intro_dialog.h" 5 #include "chrome/browser/chromeos/profiles/multiprofiles_intro_dialog.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/grit/generated_resources.h" 9 #include "chrome/grit/generated_resources.h"
10 #include "ui/base/l10n/l10n_util.h" 10 #include "ui/base/l10n/l10n_util.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 lower_label->SetHorizontalAlignment(gfx::ALIGN_LEFT); 133 lower_label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
134 lower_label->SetAllowCharacterBreak(true); 134 lower_label->SetAllowCharacterBreak(true);
135 grid_layout->StartRow(0, 0); 135 grid_layout->StartRow(0, 0);
136 grid_layout->AddView(lower_label); 136 grid_layout->AddView(lower_label);
137 137
138 // No-show again checkbox. 138 // No-show again checkbox.
139 grid_layout->AddPaddingRow(0, kPaddingToCheckBox); 139 grid_layout->AddPaddingRow(0, kPaddingToCheckBox);
140 no_show_checkbox_.reset(new views::Checkbox( 140 no_show_checkbox_.reset(new views::Checkbox(
141 l10n_util::GetStringUTF16(IDS_MULTIPROFILES_INTRO_NOSHOW_AGAIN))); 141 l10n_util::GetStringUTF16(IDS_MULTIPROFILES_INTRO_NOSHOW_AGAIN)));
142 no_show_checkbox_->SetChecked(true); 142 no_show_checkbox_->SetChecked(true);
143 no_show_checkbox_->SetFontList( 143 no_show_checkbox_->AdjustFontSize(ui::ResourceBundle::kMediumFontDelta);
144 ui::ResourceBundle::GetSharedInstance().GetFontList(
145 ui::ResourceBundle::MediumFont));
146 no_show_checkbox_->SetHorizontalAlignment(gfx::ALIGN_LEFT); 144 no_show_checkbox_->SetHorizontalAlignment(gfx::ALIGN_LEFT);
147 grid_layout->StartRow(0, 0); 145 grid_layout->StartRow(0, 0);
148 grid_layout->AddView(no_show_checkbox_.get()); 146 grid_layout->AddView(no_show_checkbox_.get());
149 147
150 SetLayoutManager(grid_layout); 148 SetLayoutManager(grid_layout);
151 Layout(); 149 Layout();
152 } 150 }
153 151
154 } // namespace 152 } // namespace
155 153
156 //////////////////////////////////////////////////////////////////////////////// 154 ////////////////////////////////////////////////////////////////////////////////
157 // Factory function. 155 // Factory function.
158 156
159 void ShowMultiprofilesIntroDialog(const base::Callback<void(bool)> on_accept) { 157 void ShowMultiprofilesIntroDialog(const base::Callback<void(bool)> on_accept) {
160 MultiprofilesIntroView::ShowDialog(on_accept); 158 MultiprofilesIntroView::ShowDialog(on_accept);
161 } 159 }
162 160
163 } // namespace chromeos 161 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | ui/views/touchui/touch_selection_menu_runner_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698