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

Unified Diff: ash/common/system/user/user_view.cc

Issue 2721553004: Remove auto raw pointer deduction from non-linux specific code. (Closed)
Patch Set: Created 3 years, 10 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: ash/common/system/user/user_view.cc
diff --git a/ash/common/system/user/user_view.cc b/ash/common/system/user/user_view.cc
index ba53d7cf428b1ff7519207ce448d05e66706ca13..01e89cfdb3ab0aeec76ea2016a808e158709f360 100644
--- a/ash/common/system/user/user_view.cc
+++ b/ash/common/system/user/user_view.cc
@@ -68,9 +68,9 @@ bool IsMultiProfileSupportedAndUserActive() {
// Creates the view shown in the user switcher popup ("AddUserMenuOption").
views::View* CreateAddUserView(AddUserSessionPolicy policy,
views::ButtonListener* listener) {
- auto view = new views::View;
+ auto* view = new views::View;
const int icon_padding = (kMenuButtonSize - kMenuIconSize) / 2;
- auto layout =
+ auto* layout =
new views::BoxLayout(views::BoxLayout::kHorizontal, 0, 0,
kTrayPopupLabelHorizontalPadding + icon_padding);
layout->set_minimum_cross_axis_size(
@@ -84,7 +84,7 @@ views::View* CreateAddUserView(AddUserSessionPolicy policy,
case AddUserSessionPolicy::ALLOWED: {
message_id = IDS_ASH_STATUS_TRAY_SIGN_IN_ANOTHER_ACCOUNT;
- auto icon = new views::ImageView();
+ auto* icon = new views::ImageView();
icon->SetImage(
gfx::CreateVectorIcon(kSystemMenuNewUserIcon, kMenuIconColor));
view->AddChildView(icon);
@@ -101,7 +101,7 @@ views::View* CreateAddUserView(AddUserSessionPolicy policy,
break;
}
- auto command_label = new views::Label(l10n_util::GetStringUTF16(message_id));
+ auto* command_label = new views::Label(l10n_util::GetStringUTF16(message_id));
command_label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
command_label->SetMultiLine(true);
@@ -119,7 +119,7 @@ views::View* CreateAddUserView(AddUserSessionPolicy policy,
vertical_padding,
kTrayPopupLabelHorizontalPadding));
if (policy == AddUserSessionPolicy::ALLOWED) {
- auto button =
+ auto* button =
new ButtonFromView(view, listener, TrayPopupInkDropStyle::INSET_BOUNDS);
button->SetAccessibleName(
l10n_util::GetStringUTF16(IDS_ASH_STATUS_TRAY_SIGN_IN_ANOTHER_ACCOUNT));
@@ -221,7 +221,7 @@ UserView::UserView(SystemTrayItem* owner, LoginStatus login, UserIndex index)
AddLogoutButton(login);
AddUserCard(login);
- auto layout = new views::BoxLayout(views::BoxLayout::kHorizontal, 0, 0, 0);
+ auto* layout = new views::BoxLayout(views::BoxLayout::kHorizontal, 0, 0, 0);
SetLayoutManager(layout);
layout->set_cross_axis_alignment(
views::BoxLayout::CROSS_AXIS_ALIGNMENT_CENTER);

Powered by Google App Engine
This is Rietveld 408576698