title: Can't pass arguments to chrome.declarativeContent.SetIcon
body: <p>I'm trying to develop a simple chrome extension. There is a <a href="https://developer.chrome.com/extensions/pageAction" rel="noreferrer"><strong>pageAction</strong></a>'s default icon that should appear on the pages with a specific URL (<code>http://www.example.com/*</code>).</p>
  
  <p>There is a two file</p>
  
  <p><strong><code>manifest.json</code></strong>
  </p>
  
  <pre><code>{
    "manifest_version": 2,
    "name": "name",
    "description": "description",
    "version": "1.0",
    "background": {
      "scripts": [
        "background.js"
      ],
      "persistent": false
    },
    "page_action": {
      "default_icon" : "images/icons/19.png"
    },
    "permissions": [
      "declarativeContent"
    ]
  }
  </code></pre>
  
  <p><strong><code>background.js</code></strong></p>
  
  <pre class="lang-js prettyprint-override"><code>chrome.runtime.onInstalled.addListener(function () {
      chrome.declarativeContent.onPageChanged.removeRules(undefined, function () {
          chrome.declarativeContent.onPageChanged.addRules([
              {
                  // rule1
                  conditions : [
                      new chrome.declarativeContent.PageStateMatcher({
                          pageUrl : {urlPrefix : 'http://www.example.com/'}
                      })
                  ],
                  actions    : [
                      new chrome.declarativeContent.ShowPageAction()
                  ]
              },
              {
                  // rule2
                  conditions : [
                      new chrome.declarativeContent.PageStateMatcher({
                          pageUrl : {queryContains : 'q1=green'}
                      })
                  ],
                  actions    : [
                      new chrome.declarativeContent.SetIcon({
                          path : {"19" : "images/icons/green.png"}
                      })
                  ]
              }
          ]);
      });
  });
  </code></pre>
  
  <p><code>rule1</code> should show pageAction's icon and <code>rule2</code> should change icon to green version on the pages with URL that looks like <code>http://www.example.com/?q1=green</code></p>
  
  <p>But during installation of extension things come to:</p>
  
  <pre><code>Error in response to events.removeRules: Error: Invalid value for argument 1. Property '.0': Value does not match any valid type choices.
  </code></pre>