Mac: Fix crash when opening Incognito window
commit6fe37681decffe98d09682f52fd3b66cd90cafef
authorandresantoso <andresantoso@chromium.org>
Fri, 23 Jan 2015 01:19:51 +0000 (22 17:19 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 23 Jan 2015 01:20:32 +0000 (23 01:20 +0000)
tree2389c7dab0680c8edff7f4a4dea9c11f02968726
parentd823c1b21de57472e1bd52f7a3d9c7c23239b3b9
Mac: Fix crash when opening Incognito window

Regressed by https://crrev.com/de66e360e2a2944bdf71608726b19b3bf2a2a6ff.

ExtensionCommandsGlobalRegistry::Get() returns null when incognito, add a check
for it.

BUG=450903

Review URL: https://codereview.chromium.org/822083004

Cr-Commit-Position: refs/heads/master@{#312726}
chrome/browser/ui/cocoa/browser_window_controller.mm