Index: chrome/test/data/extensions/api_test/webstore_inline_install/install_not_supported.html |
diff --git a/chrome/test/data/extensions/api_test/webstore_inline_install/install_not_supported.html b/chrome/test/data/extensions/api_test/webstore_inline_install/install_not_supported.html |
index f86fc40636cb17f32269587c7a868b9d0e8b3f1e..df51eba66a2c87dfd0ce2f05df7cd0950aa88fd4 100644 |
--- a/chrome/test/data/extensions/api_test/webstore_inline_install/install_not_supported.html |
+++ b/chrome/test/data/extensions/api_test/webstore_inline_install/install_not_supported.html |
@@ -22,8 +22,9 @@ |
console.log('did not expect install success'); |
window.domAutomationController.send(false); |
}, |
- function(error) { |
- if (error.indexOf('not supported') != -1) { |
+ function(error, errorCode) { |
+ if (error.indexOf('not supported') != -1 && |
+ errorCode == 'notPermitted') { |
console.log('Ran test, sending response'); |
window.domAutomationController.send(true); |
console.log('Test complete'); |