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

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: rebase 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
« no previous file with comments | « ash/common/system/update/tray_update.cc ('k') | ash/common/system/user/user_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1e1bd57e75b05b4b94cca2f0cf247ba129773446..aaf1d4e656f22b7bfecb4e7bb22873cf249fec73 100644
--- a/ash/common/system/user/user_card_view.cc
+++ b/ash/common/system/user/user_card_view.cc
@@ -292,8 +292,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(kTrayPopupItemMinHeight);
layout->set_cross_axis_alignment(
@@ -334,7 +334,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;
@@ -411,7 +411,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 =
« no previous file with comments | « ash/common/system/update/tray_update.cc ('k') | ash/common/system/user/user_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698