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

Unified Diff: chrome/test/webdriver/webdriver_session.cc

Issue 8649004: Allow chromedriver to install an extension and get all installed extension IDs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 1 month 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/webdriver/webdriver_session.cc
diff --git a/chrome/test/webdriver/webdriver_session.cc b/chrome/test/webdriver/webdriver_session.cc
index 74ad4a1877e7c5f5144366045af59f52248022df..b089b632ee5fe03f9ae2d191fb4c9f90925aedef 100644
--- a/chrome/test/webdriver/webdriver_session.cc
+++ b/chrome/test/webdriver/webdriver_session.cc
@@ -997,12 +997,35 @@ Error* Session::WaitForAllTabsToStopLoading() {
return error;
}
-Error* Session::InstallExtension(const FilePath& path) {
+Error* Session::InstallExtensionDeprecated(const FilePath& path) {
+ Error* error = NULL;
+ RunSessionTask(NewRunnableMethod(
+ automation_.get(),
+ &Automation::InstallExtensionDeprecated,
+ path,
+ &error));
+ return error;
+}
+
+Error* Session::GetInstalledExtensions(
+ std::vector<std::string>* extension_ids) {
+ Error* error = NULL;
+ RunSessionTask(NewRunnableMethod(
+ automation_.get(),
+ &Automation::GetInstalledExtensions,
+ extension_ids,
+ &error));
+ return error;
+}
+
+Error* Session::InstallExtension(
+ const FilePath& path, std::string* extension_id) {
Error* error = NULL;
RunSessionTask(NewRunnableMethod(
automation_.get(),
&Automation::InstallExtension,
path,
+ extension_id,
&error));
return error;
}

Powered by Google App Engine
This is Rietveld 408576698