function updateViewState(view) {
        if (view.getViewState) {
            _setViewState(view.getFile(), view.getViewState());
        }
    }
Updates the view state for the specified view
@param {!{!getFile:function():File, getViewState:function():*}} view - the to save state
@param {?*} viewState - any data that the view needs to restore the view state.