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

Side by Side Diff: ash/display/display_util.cc

Issue 2110643002: ash: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
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 "ash/display/display_util.h" 5 #include "ash/display/display_util.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "ash/common/display/display_info.h" 9 #include "ash/common/display/display_info.h"
10 #include "ash/common/system/system_notifier.h" 10 #include "ash/common/system/system_notifier.h"
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 system_notifier::kNotifierDisplayError), 458 system_notifier::kNotifierDisplayError),
459 message_center::RichNotificationData(), 459 message_center::RichNotificationData(),
460 new DisplayErrorNotificationDelegate)); 460 new DisplayErrorNotificationDelegate));
461 message_center::MessageCenter::Get()->AddNotification( 461 message_center::MessageCenter::Get()->AddNotification(
462 std::move(notification)); 462 std::move(notification));
463 } 463 }
464 464
465 base::string16 GetDisplayErrorNotificationMessageForTest() { 465 base::string16 GetDisplayErrorNotificationMessageForTest() {
466 message_center::NotificationList::Notifications notifications = 466 message_center::NotificationList::Notifications notifications =
467 message_center::MessageCenter::Get()->GetVisibleNotifications(); 467 message_center::MessageCenter::Get()->GetVisibleNotifications();
468 for (auto const notification : notifications) { 468 for (auto* const notification : notifications) {
469 if (notification->id() == kDisplayErrorNotificationId) 469 if (notification->id() == kDisplayErrorNotificationId)
470 return notification->message(); 470 return notification->message();
471 } 471 }
472 return base::string16(); 472 return base::string16();
473 } 473 }
474 474
475 } // namespace ash 475 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/wm/workspace/workspace_layout_manager.cc ('k') | ash/host/ash_window_tree_host_unified.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698