chrome.storage.managed policy for extension
<p>We want a Chrome extension with this policy:
<a href="http://www.chromium.org/administrators/configuring-policy-for-extensions" rel="nofollow">http://www.chromium.org/administrators/configuring-policy-for-extensions</a>
So we can hide the 'welcome' page on our intern Network. And regular users (from Chrome web store) see the 'welcome' page when they installed this Chrome extension.</p>

<p>The first <strong>Background.js</strong> code work OK, here it shows the 'welcome page' when the user install this extension for the first time.
I upgrade the code to 'new background', but the code doesn't do the task of hiding the 'welcome page' with the network 'policy' registry. Any idea on how to fix this issue? Or what JavaScript code is missing?</p>

<p>This is our code:
<strong>Background.js</strong></p>

<pre><code>chrome.storage.local.get(['firstRun'], function(chromeset){
if ((chromeset["firstRun"]!="false") &amp;&amp; (chromeset["firstRun"]!=false)){
  chrome.tabs.create({url: "http://www.google.com", selected:true})
  chrome.storage.local.set({"firstRun": "false"});
}
});
</code></pre>

<p><strong>manifest.js</strong></p>

<pre><code>  ...

"permissions": [
    "bookmarks"
  ],
  "storage": {
    "managed_schema": "schema.json"
  }
}
</code></pre>

<p><strong>schema.json</strong></p>

<pre><code>{
  "type": "object",
  "properties": {
    "HideFirstRunPage": {
      "title": "Hide the first welcome page",
      "description": "Configures App to show not the first welcome page when you install this extension.",
      "type": "boolean"
    }
  }
}
</code></pre>

<p><strong>New background.js</strong></p>

<pre><code>var HideFirstRunPage = false;

if (require("info").platform == "chromium" &amp;&amp; "managed" in chrome.storage)
 {
        chrome.storage.managed.get('HideFirstRunPage', function (data) {            
                var thenewvalue = data.HideFirstRunPage;
                if(thenewvalue == true){
                chrome.storage.local.set({"firstRun": "false"});
                } else{
                initwelcome()
                }
            }); 
} else{
initwelcome()
}    


function initwelcome(){
    // new user? Then open this google.com page
    chrome.storage.local.get(['firstRun'], function(chromeset){
    if ((chromeset["firstRun"]!="false") &amp;&amp; (chromeset["firstRun"]!=false)){
    chrome.tabs.create({url: "https://www.google.com", selected:true})
    chrome.storage.local.set({"firstRun": "false"});
    });
 }

 document.addEventListener('DOMContentLoaded', function () {initwelcome()}
</code></pre>