modified some variables in set_chrome_plugin_state