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

Unified Diff: chrome/browser/media/fake_desktop_media_list.cc

Issue 393653004: Add unit tests for DesktopMediaPickerViews. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/views/desktop_media_picker_views.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/fake_desktop_media_list.cc
diff --git a/chrome/browser/media/fake_desktop_media_list.cc b/chrome/browser/media/fake_desktop_media_list.cc
index 1726f422368792bbd9c7cca918d1065fb6a5a729..58279a974cd44621c561682a084c7910e33b2c2e 100644
--- a/chrome/browser/media/fake_desktop_media_list.cc
+++ b/chrome/browser/media/fake_desktop_media_list.cc
@@ -21,7 +21,7 @@ void FakeDesktopMediaList::AddSource(int id) {
void FakeDesktopMediaList::RemoveSource(int index) {
sources_.erase(sources_.begin() + index);
- observer_->OnSourceRemoved(sources_.size() - 1);
+ observer_->OnSourceRemoved(index);
}
void FakeDesktopMediaList::MoveSource(int old_index, int new_index) {
« no previous file with comments | « no previous file | chrome/browser/ui/views/desktop_media_picker_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698