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

Unified Diff: ash/common/system/user/user_card_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_card_view.cc
diff --git a/ash/common/system/user/user_card_view.cc b/ash/common/system/user/user_card_view.cc
index 8d465abceb4c0b9823e814d6638ccc4eb089a397..bb715f75a0ca1057481b4e93cf415bf1edd6e405 100644
--- a/ash/common/system/user/user_card_view.cc
+++ b/ash/common/system/user/user_card_view.cc
@@ -293,8 +293,8 @@ UserCardView::UserCardView(LoginStatus login_status,
user_name_(nullptr),
media_capture_label_(nullptr),
media_capture_icon_(nullptr) {
- auto layout = new views::BoxLayout(views::BoxLayout::kHorizontal, 0, 0,
- kTrayPopupLabelHorizontalPadding);
+ auto* layout = new views::BoxLayout(views::BoxLayout::kHorizontal, 0, 0,
+ kTrayPopupLabelHorizontalPadding);
SetLayoutManager(layout);
layout->set_minimum_cross_axis_size(
GetTrayConstant(TRAY_POPUP_ITEM_MIN_HEIGHT));
@@ -336,7 +336,7 @@ void UserCardView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
std::list<views::View*> descendants;
descendants.push_back(this);
while (!descendants.empty()) {
- auto view = descendants.front();
+ auto* view = descendants.front();
descendants.pop_front();
if (view != this) {
ui::AXNodeData descendant_data;
@@ -413,7 +413,7 @@ void UserCardView::AddUserContent(views::BoxLayout* layout,
// label starts as black and the entire row is 54% opacity).
if (is_active_user())
user_email_style.set_color_style(TrayPopupItemStyle::ColorStyle::INACTIVE);
- auto user_email = new views::Label();
+ auto* user_email = new views::Label();
base::string16 user_email_string;
if (login_status != LoginStatus::GUEST) {
user_email_string =

Powered by Google App Engine
This is Rietveld 408576698