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

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: Reuploading again since some files weren't included 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..d7a5398003a0aef0f6a3a948e15a805abc69609f 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) {
chrisgao (Use stgao instead) 2014/01/15 21:39:56 whoops, nit: |Id| -> |id|?
bustamante 2014/01/15 23:51:38 Done.
+ chrome.management.launchApp(Id, function() {
+ checkForExtensionError(errCallback);
+ callback();
+ });
+}

Powered by Google App Engine
This is Rietveld 408576698