I was developing a chrome plugin in which captures desktop screen. I am using the sample plugin example given here... https://developer.chrome.com/extensions/samples#desktop
You can't do this. The manifest permission allows you to provide this feature but the user still has to select the screen and hit share.
Like others said, this is a security feature to prevent your extension from triggering this without informing the user.