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

Unified Diff: chrome/browser/ui/views/chooser_content_view.cc

Issue 2242943002: Update device name in chooser when device changes name (desktops) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated device name in chooser when device changes name Created 4 years, 4 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: chrome/browser/ui/views/chooser_content_view.cc
diff --git a/chrome/browser/ui/views/chooser_content_view.cc b/chrome/browser/ui/views/chooser_content_view.cc
index 6ae3d32f4a50e61d2ff570234140d02958829013..e064ad710bcbd9f4018f666d00bf33a1c85d9e7e 100644
--- a/chrome/browser/ui/views/chooser_content_view.cc
+++ b/chrome/browser/ui/views/chooser_content_view.cc
@@ -98,6 +98,11 @@ void ChooserContentView::OnOptionRemoved(size_t index) {
UpdateTableView();
}
+void ChooserContentView::OnOptionUpdated(size_t index) {
+ table_view_->OnItemsChanged(static_cast<int>(index), 1);
msw 2016/08/12 22:19:34 nit q: can you use or [D]CHECK something from base
juncai 2016/08/15 18:11:19 Done.
+ UpdateTableView();
+}
+
void ChooserContentView::OnAdapterEnabledChanged(bool enabled) {
// No row is selected since the adapter status has changed.
// This will also disable the OK button if it was enabled because

Powered by Google App Engine
This is Rietveld 408576698