| Index: chrome/browser/ui/cocoa/browser_window_controller.mm
|
| diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm
|
| index 6b9936924a8d01b402c02bf93e1d2589a4e1b766..c22f121ed44bb8f752ca8d52052e11ee0fcbf843 100644
|
| --- a/chrome/browser/ui/cocoa/browser_window_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
|
| @@ -20,6 +20,7 @@
|
| #include "chrome/browser/bookmarks/chrome_bookmark_client_factory.h"
|
| #include "chrome/browser/browser_process.h"
|
| #include "chrome/browser/devtools/devtools_window.h"
|
| +#include "chrome/browser/extensions/extension_commands_global_registry.h"
|
| #include "chrome/browser/fullscreen.h"
|
| #include "chrome/browser/profiles/avatar_menu.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| @@ -625,6 +626,9 @@ using content::WebContents;
|
| // TODO(viettrungluu): For some reason, the above doesn't suffice.
|
| if ([self isInAnyFullscreenMode])
|
| [floatingBarBackingView_ setNeedsDisplay:YES]; // Okay even if nil.
|
| +
|
| + extensions::ExtensionCommandsGlobalRegistry::Get(browser_->profile())->
|
| + set_registry_for_active_window(extension_keybinding_registry_.get());
|
| }
|
|
|
| - (void)windowDidResignMain:(NSNotification*)notification {
|
| @@ -635,6 +639,9 @@ using content::WebContents;
|
| // TODO(viettrungluu): For some reason, the above doesn't suffice.
|
| if ([self isInAnyFullscreenMode])
|
| [floatingBarBackingView_ setNeedsDisplay:YES]; // Okay even if nil.
|
| +
|
| + extensions::ExtensionCommandsGlobalRegistry::Get(browser_->profile())->
|
| + set_registry_for_active_window(nullptr);
|
| }
|
|
|
| // Called when we are activated (when we gain focus).
|
|
|