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

Unified Diff: chrome/browser/chromeos/net/tether_notification_presenter.cc

Issue 2953973002: [CrOS Tether] Remove notifications when they have been tapped. (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | chrome/browser/chromeos/net/tether_notification_presenter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/net/tether_notification_presenter.cc
diff --git a/chrome/browser/chromeos/net/tether_notification_presenter.cc b/chrome/browser/chromeos/net/tether_notification_presenter.cc
index 3648c3a485647991fb74811b21af06d39a274e8b..590ac5f3b47405fd996f98ec8fe8e53a22639384 100644
--- a/chrome/browser/chromeos/net/tether_notification_presenter.cc
+++ b/chrome/browser/chromeos/net/tether_notification_presenter.cc
@@ -191,6 +191,7 @@ void TetherNotificationPresenter::OnNotificationClicked(
PA_LOG(INFO) << "Notification with ID " << notification_id << " was clicked.";
settings_ui_delegate_->ShowSettingsSubPageForProfile(profile_,
kTetherSettingsSubpage);
+ message_center_->RemoveNotification(notification_id, true /* by_user */);
}
void TetherNotificationPresenter::OnNotificationButtonClicked(
@@ -203,6 +204,7 @@ void TetherNotificationPresenter::OnNotificationButtonClicked(
if (notification_id == kPotentialHotspotNotificationId && button_index == 0) {
network_connect_->ConnectToNetworkId(hotspot_nearby_device_.GetDeviceId());
}
+ message_center_->RemoveNotification(notification_id, true /* by_user */);
}
void TetherNotificationPresenter::SetSettingsUiDelegateForTesting(
« no previous file with comments | « no previous file | chrome/browser/chromeos/net/tether_notification_presenter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698