In fact, I was doing it wrong - if you are using a Chrome extension and want full screen mode, like me, you can simply use the following:
chrome.windows.getCurrent(null, function(window) {
chrome.windows.update(window.id, {state: "fullscreen"});
})
source
to share