DescriptionWhen page translation state is updated, just ask the toolbar to update, don't
also ask it to restore saved state.
This eliminates the BrowserContentTranslateDriverObserver class in favor of just
implementing this on Browser directly as various other such observer
implementations do -- allowing the code to call the UpdateToolbar() method
instead of BrowserWindow::UpdateToolbar(), whose correct use is slightly less
clear.
BUG=459445
TEST=See steps on bug comment 22. In step 1, be sure to restart Chrome after changing the language, and then set Chrome to prompt to translate pages in English.
Committed: https://crrev.com/cc29d20ef40d7b3d54e7ffbe9ba035d1a0c71ae1
Cr-Commit-Position: refs/heads/master@{#317993}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|