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

Unified Diff: chrome/test/chromedriver/extension/background.js

Issue 114403005: Adding a LaunchApp command to Chromedriver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing additional comments Created 6 years, 11 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/chromedriver/extension/background.js
diff --git a/chrome/test/chromedriver/extension/background.js b/chrome/test/chromedriver/extension/background.js
index 9158d6f5d72672bafc3bf7260cfe83d7771ebddb..9655ffa72b7f6d27cc51d67156dccc9a387e81ed 100644
--- a/chrome/test/chromedriver/extension/background.js
+++ b/chrome/test/chromedriver/extension/background.js
@@ -71,3 +71,18 @@ function updateWindow(updateInfo, callback, errCallback) {
});
});
}
+
+/**
+ * Launches an app with the specified id.
+ *
+ * @param {string} id The ID of the app to launch.
+ * @param {function()} callback Invoked when the launch event is complete.
+ * @param {function(!Error)} errCallback The callback to invoke for error
+ * reporting.
+ */
+function launchApp(id, callback, errCallback) {
+ chrome.management.launchApp(id, function() {
+ checkForExtensionError(errCallback);
+ callback();
+ });
+}
« no previous file with comments | « chrome/test/chromedriver/chrome/automation_extension.cc ('k') | chrome/test/chromedriver/extension/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698