title: Capture screen -- chrome.desktopCapture.chooseDesktopMedia fails -- PNacl extension
body: <p>I'm trying to use the <a href="https://developer.chrome.com/extensions/desktopCapture" rel="nofollow">desktopCapture API</a> in the following manner.</p>
  
  <pre><code>chrome.desktopCapture.chooseDesktopMedia(
              ["screen", "window"], onAccessApproved);
  </code></pre>
  
  <p>chrome.desktopCapture shows as undefined when I set a breakpoint and inspect it. Permissions in my manifest file are as follows:-</p>
  
  <pre><code>"permissions": ["desktopCapture", "notifications" ]
  </code></pre>
  
  <p>Common causes for failure of this API are listed <a href="https://dart-gde.github.io/chrome_gen.dart/ext/chrome.desktopCapture/ChromeDesktopCapture.html" rel="nofollow">here</a> as  </p>
  
  <ul>
  <li>a permission is missing in the application's manifest.json file</li>
  <li>the API is defined on a newer version of Chrome then the current runtime
  docs inherited from ChromeApi</li>
  </ul>
  
  <p>And I don't have those problems.</p>
  
  <ul>
  <li>My Chrome version is <code>43.0.2357.124 m</code></li>
  <li>Pepper version is 43</li>
  </ul>
  
  <p>FYI, I am trying to develop a Chrome extension to capture the screen using PNacl, and have borrowed from the <a href="https://developer.chrome.com/native-client/sdk/examples" rel="nofollow">media_stream_video example downloaded from here</a>.  But I haven't even gotten to sending a message to the pexe side yet. I'm still stuck at <code>chrome.desktopCapture.chooseDesktopMedia</code> returning undefined.</p>