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

Issue 23447012: Add interface for DesktopMediaPickerModel (Closed)

Created:
7 years, 3 months ago by dcaiafa
Modified:
7 years, 3 months ago
Reviewers:
Sergey Ulanov
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, feature-media-reviews_chromium.org, tfarina, extensions-reviews_chromium.org
Visibility:
Public.

Description

Add interface for DesktopMediaPickerModel This CL adds an interface for DesktopMediaPickerModel (DesktopMediaPickerModelInterface). It allows the model to be faked/mocked/stubbed in unittests. BUG=237907 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221795

Patch Set 1 #

Patch Set 2 : Removed DesktopMediaPicker changes. #

Total comments: 2

Patch Set 3 : Interface=DesktopMediaPickerModel. Implementation=DesktopMediaPickerModelImpl. #

Patch Set 4 : Fixed nit. #

Total comments: 2

Patch Set 5 : Removed DISALLOW_ASSIGN. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -44 lines) Patch
M chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/desktop_capture/desktop_capture_apitest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/media/desktop_media_picker_model.h View 1 2 3 4 2 chunks +26 lines, -13 lines 0 comments Download
M chrome/browser/media/desktop_media_picker_model.cc View 1 2 10 chunks +35 lines, -24 lines 0 comments Download
M chrome/browser/media/desktop_media_picker_model_unittest.cc View 1 2 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
dcaiafa
7 years, 3 months ago (2013-09-04 18:57:42 UTC) #1
Sergey Ulanov
https://codereview.chromium.org/23447012/diff/5001/chrome/browser/media/desktop_media_picker_model.h File chrome/browser/media/desktop_media_picker_model.h (right): https://codereview.chromium.org/23447012/diff/5001/chrome/browser/media/desktop_media_picker_model.h#newcode24 chrome/browser/media/desktop_media_picker_model.h:24: class DesktopMediaPickerModelInterface { We don't normally use "Interface" suffix ...
7 years, 3 months ago (2013-09-04 20:39:00 UTC) #2
dcaiafa
PTAL https://codereview.chromium.org/23447012/diff/5001/chrome/browser/media/desktop_media_picker_model.h File chrome/browser/media/desktop_media_picker_model.h (right): https://codereview.chromium.org/23447012/diff/5001/chrome/browser/media/desktop_media_picker_model.h#newcode24 chrome/browser/media/desktop_media_picker_model.h:24: class DesktopMediaPickerModelInterface { On 2013/09/04 20:39:00, Sergey Ulanov ...
7 years, 3 months ago (2013-09-04 22:41:37 UTC) #3
Sergey Ulanov
lgtm https://codereview.chromium.org/23447012/diff/13001/chrome/browser/media/desktop_media_picker_model.h File chrome/browser/media/desktop_media_picker_model.h (right): https://codereview.chromium.org/23447012/diff/13001/chrome/browser/media/desktop_media_picker_model.h#newcode75 chrome/browser/media/desktop_media_picker_model.h:75: DISALLOW_ASSIGN(DesktopMediaPickerModel); nit: Why not DISALLOW_COPY_AND_ASSIGN? In either case ...
7 years, 3 months ago (2013-09-04 22:50:05 UTC) #4
dcaiafa
Thanks. https://codereview.chromium.org/23447012/diff/13001/chrome/browser/media/desktop_media_picker_model.h File chrome/browser/media/desktop_media_picker_model.h (right): https://codereview.chromium.org/23447012/diff/13001/chrome/browser/media/desktop_media_picker_model.h#newcode75 chrome/browser/media/desktop_media_picker_model.h:75: DISALLOW_ASSIGN(DesktopMediaPickerModel); On 2013/09/04 22:50:06, Sergey Ulanov wrote: > ...
7 years, 3 months ago (2013-09-04 23:00:27 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcaiafa@chromium.org/23447012/18001
7 years, 3 months ago (2013-09-04 23:02:22 UTC) #6
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-04 23:27:33 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcaiafa@chromium.org/23447012/18001
7 years, 3 months ago (2013-09-04 23:33:17 UTC) #8
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-04 23:42:54 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcaiafa@chromium.org/23447012/18001
7 years, 3 months ago (2013-09-06 18:34:54 UTC) #10
commit-bot: I haz the power
7 years, 3 months ago (2013-09-06 22:21:01 UTC) #11
Message was sent while issue was closed.
Change committed as 221795

Powered by Google App Engine
This is Rietveld 408576698