Commit 5954a8c7 authored by Xi Cheng's avatar Xi Cheng Committed by Commit Bot

Use auto keyword in NotificationPlatformBridgeWin

Change-Id: Icc77d7f903bf29fb79fee5270e97098208ad154c
Reviewed-on: https://chromium-review.googlesource.com/1219970Reviewed-by: default avatarPeter Beverloo <peter@chromium.org>
Commit-Queue: Xi Cheng <chengx@chromium.org>
Cr-Commit-Position: refs/heads/master@{#590447}
parent 989ecb31
...@@ -258,8 +258,7 @@ class NotificationPlatformBridgeWinImpl ...@@ -258,8 +258,7 @@ class NotificationPlatformBridgeWinImpl
std::vector<winui::Notifications::IToastNotification*> notifications; std::vector<winui::Notifications::IToastNotification*> notifications;
GetNotifications(profile_id, incognito, &notifications); GetNotifications(profile_id, incognito, &notifications);
for (winui::Notifications::IToastNotification* notification : for (auto* notification : notifications) {
notifications) {
winui::Notifications::IToastNotification2* t2 = nullptr; winui::Notifications::IToastNotification2* t2 = nullptr;
HRESULT hr = notification->QueryInterface(&t2); HRESULT hr = notification->QueryInterface(&t2);
if (FAILED(hr)) if (FAILED(hr))
...@@ -546,8 +545,7 @@ class NotificationPlatformBridgeWinImpl ...@@ -546,8 +545,7 @@ class NotificationPlatformBridgeWinImpl
GetNotifications(profile_id, incognito, &notifications); GetNotifications(profile_id, incognito, &notifications);
auto displayed_notifications = std::make_unique<std::set<std::string>>(); auto displayed_notifications = std::make_unique<std::set<std::string>>();
for (winui::Notifications::IToastNotification* notification : for (auto* notification : notifications) {
notifications) {
NotificationLaunchId launch_id(GetNotificationLaunchId(notification)); NotificationLaunchId launch_id(GetNotificationLaunchId(notification));
if (!launch_id.is_valid()) { if (!launch_id.is_valid()) {
LogGetDisplayedLaunchIdStatus( LogGetDisplayedLaunchIdStatus(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment