Chromium Code Reviews| Index: chrome/browser/ui/browser_command_controller.cc |
| diff --git a/chrome/browser/ui/browser_command_controller.cc b/chrome/browser/ui/browser_command_controller.cc |
| index 570de3e90725c3d34d091445a5d418eab49342d7..fcb1e0e284435ca91743b1e48a37b89ace5aed36 100644 |
| --- a/chrome/browser/ui/browser_command_controller.cc |
| +++ b/chrome/browser/ui/browser_command_controller.cc |
| @@ -25,6 +25,7 @@ |
| #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" |
| #include "chrome/browser/ui/browser.h" |
| #include "chrome/browser/ui/browser_commands.h" |
| +#include "chrome/browser/ui/browser_list.h" |
| #include "chrome/browser/ui/browser_window.h" |
| #include "chrome/browser/ui/chrome_pages.h" |
| #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| @@ -1134,6 +1135,9 @@ void BrowserCommandController::UpdateCommandsForTabState() { |
| UpdateCommandsForContentRestrictionState(); |
| UpdateCommandsForBookmarkEditing(); |
| UpdateCommandsForFind(); |
| + // Send browser observers that a tab state has changed. |
| + BrowserList::SetLastActive(browser_); |
|
Avi (use Gerrit)
2015/05/15 16:13:08
Are the existing calls to SetLastActive not workin
sarka
2015/05/15 16:36:55
From what I understand not when a new tab is added
|
| + |
| // Update the zoom commands when an active tab is selected. |
| UpdateCommandsForZoomState(); |
| } |