Files.app: Dispatch 'drive-connection-changed' event on initialization of VolumeManag...
commit6c290c4f816f3ee35c1de10e2c0d5d1955d87414
authorfukino <fukino@chromium.org>
Tue, 14 Jul 2015 06:42:07 +0000 (13 23:42 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 14 Jul 2015 06:42:49 +0000 (14 06:42 +0000)
tree4b8391a11e8590de144c811319566776a0b5550d
parent9fa4dbc009d5d6fefa9f170921ae9adbaa977369
Files.app: Dispatch 'drive-connection-changed' event on initialization of VolumeManagerWrapper.

VolumeManagerWrapper.getDriveConnectionState() returns 'offline' until the instance of VolumeManagerWrapper is wired to background's VolumeManager.
Since the return value can be changed when it is wired to VolumeManager, we need to notify foreground components so that they update themselves based on the latest connection status.

BUG=509565
TEST=manually

Review URL: https://codereview.chromium.org/1240583002

Cr-Commit-Position: refs/heads/master@{#338648}
ui/file_manager/file_manager/foreground/js/volume_manager_wrapper.js