
The saveReviewedState observer observes params.*, but should not set reviewed state when view !== Gerrit.Nav.View.DIFF. This can (and did) happen when the Gerrit.Nav API is used to change the view -- the observer is triggered before the view is detached. Bug: Issue 8192 Change-Id: I06c1875f6f515c0d001277e63eb7724728c85cba