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(); |
+ }); |
+} |