Index: chrome/browser/ui/views/desktop_media_picker_views.cc |
diff --git a/chrome/browser/ui/views/desktop_media_picker_views.cc b/chrome/browser/ui/views/desktop_media_picker_views.cc |
index 1c89f35c3111bef1979e766d7532d03ac60b5733..e80351f8221fcdc378f46ee666ee0873ce2e23a9 100644 |
--- a/chrome/browser/ui/views/desktop_media_picker_views.cc |
+++ b/chrome/browser/ui/views/desktop_media_picker_views.cc |
@@ -315,7 +315,7 @@ bool DesktopMediaListView::OnKeyPressed(const ui::KeyEvent& event) { |
return false; |
} |
-void DesktopMediaListView::OnSourceAdded(int index) { |
+void DesktopMediaListView::OnSourceAdded(DesktopMediaList* list, int index) { |
const DesktopMediaList::Source& source = media_list_->GetSource(index); |
DesktopMediaSourceView* source_view = |
new DesktopMediaSourceView(this, source.id); |
@@ -342,7 +342,7 @@ void DesktopMediaListView::OnSourceAdded(int index) { |
} |
} |
-void DesktopMediaListView::OnSourceRemoved(int index) { |
+void DesktopMediaListView::OnSourceRemoved(DesktopMediaList* list, int index) { |
DesktopMediaSourceView* view = |
static_cast<DesktopMediaSourceView*>(child_at(index)); |
DCHECK(view); |
@@ -360,21 +360,25 @@ void DesktopMediaListView::OnSourceRemoved(int index) { |
parent_->OnMediaListRowsChanged(); |
} |
-void DesktopMediaListView::OnSourceMoved(int old_index, int new_index) { |
+void DesktopMediaListView::OnSourceMoved(DesktopMediaList* list, |
+ int old_index, |
+ int new_index) { |
DesktopMediaSourceView* view = |
static_cast<DesktopMediaSourceView*>(child_at(old_index)); |
ReorderChildView(view, new_index); |
PreferredSizeChanged(); |
} |
-void DesktopMediaListView::OnSourceNameChanged(int index) { |
+void DesktopMediaListView::OnSourceNameChanged(DesktopMediaList* list, |
+ int index) { |
const DesktopMediaList::Source& source = media_list_->GetSource(index); |
DesktopMediaSourceView* source_view = |
static_cast<DesktopMediaSourceView*>(child_at(index)); |
source_view->SetName(source.name); |
} |
-void DesktopMediaListView::OnSourceThumbnailChanged(int index) { |
+void DesktopMediaListView::OnSourceThumbnailChanged(DesktopMediaList* list, |
+ int index) { |
const DesktopMediaList::Source& source = media_list_->GetSource(index); |
DesktopMediaSourceView* source_view = |
static_cast<DesktopMediaSourceView*>(child_at(index)); |