| Index: chrome/browser/ui/gtk/browser_titlebar.cc
|
| diff --git a/chrome/browser/ui/gtk/browser_titlebar.cc b/chrome/browser/ui/gtk/browser_titlebar.cc
|
| index cea39035232f8923dd23c4c64f190e2a7bcce928..84939f99c940d8c017241ec4eb016b4cbc513434 100644
|
| --- a/chrome/browser/ui/gtk/browser_titlebar.cc
|
| +++ b/chrome/browser/ui/gtk/browser_titlebar.cc
|
| @@ -950,7 +950,7 @@ bool BrowserTitlebar::IsCommandIdChecked(int command_id) const {
|
| EncodingMenuController controller;
|
| if (controller.DoesCommandBelongToEncodingMenu(command_id)) {
|
| WebContents* web_contents =
|
| - browser_window_->browser()->GetSelectedWebContents();
|
| + browser_window_->browser()->GetActiveWebContents();
|
| if (web_contents) {
|
| return controller.IsItemChecked(browser_window_->browser()->profile(),
|
| web_contents->GetEncoding(),
|
|
|