[Chromoting] Fix crash on initial connection (Mac).
commit1ffdabe0d88111e870ff8833844d9efb24b2f3b7
authorgarykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 23 Oct 2012 17:41:15 +0000 (23 17:41 +0000)
committergarykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 23 Oct 2012 17:41:15 +0000 (23 17:41 +0000)
treec42d29335a83bd7fc941e5a6c1c4ee5c4e7a0c8a
parentd554634519d93f548abb45ab15e675e5d831abae
[Chromoting] Fix crash on initial connection (Mac).

If we get a ScreenRefresh while desktop_bounds_ is empty, we'll try to
capture the screen into an empty buffer. The fix is to check the
desktop_bounds_ and update the screen configuration before initiating
the ScreenRefresh.

BUG=154716

Review URL: https://chromiumcodereview.appspot.com/11231056

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163588 0039d316-1c4b-4281-b951-d872f2087c98
remoting/host/video_frame_capturer_mac.mm