Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4286)

Unified Diff: chrome/test/data/extensions/api_test/webstore_inline_install/install.html

Issue 7795032: Add link URL and success/failure callback parameters to chrome.webstore.install() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/webstore_inline_install/install.html
diff --git a/chrome/test/data/extensions/api_test/webstore_inline_install/install.html b/chrome/test/data/extensions/api_test/webstore_inline_install/install.html
index 73121f222f8c0b2e130951fb9cc575e9765ca077..de32da4c07b9197a589381c9be95d24166001369 100644
--- a/chrome/test/data/extensions/api_test/webstore_inline_install/install.html
+++ b/chrome/test/data/extensions/api_test/webstore_inline_install/install.html
@@ -12,12 +12,19 @@
galleryUrl + '/detail/ecglahbcnmdpdciemllbhojghbkagdje';
try {
- chrome.webstore.install();
+ chrome.webstore.install(
+ undefined,
+ function() {
+ window.domAutomationController.send(true);
+ },
+ function(error) {
+ console.log('Unexpected error: ' + error);
+ window.domAutomationController.send(false);
+ });
} catch (e) {
window.domAutomationController.send(false);
throw e;
}
- window.domAutomationController.send(true);
}
</script>

Powered by Google App Engine
This is Rietveld 408576698