function start(sinkId) {
  // If no session, proceed.
  if (!g_sessionInfo.sinkId) {
    g_sessionInfo.sinkId = parseInt(sinkId);
    captureTabAndStartSession(g_sessionInfo.sinkId);
  }
}
When extension icon clicked, get device list
Then return the list to popup page