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

Unified Diff: chrome/test/pyautolib/pyautolib.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/pyautolib/pyautolib.cc
diff --git a/chrome/test/pyautolib/pyautolib.cc b/chrome/test/pyautolib/pyautolib.cc
index 1825a0969300fc1504850a53bd4a33bfbfd2c616..cc758324d1560c204159afb8d6cbe1725078a2df 100644
--- a/chrome/test/pyautolib/pyautolib.cc
+++ b/chrome/test/pyautolib/pyautolib.cc
@@ -9,7 +9,6 @@
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
#include "chrome/test/automation/automation_proxy.h"
-#include "chrome/test/automation/extension_proxy.h"
#include "chrome/test/automation/tab_proxy.h"
#include "chrome/test/pyautolib/pyautolib.h"
#include "googleurl/src/gurl.h"
@@ -216,21 +215,6 @@ int PyUITestBase::GetBrowserWindowCount() {
return num_windows;
}
-std::string PyUITestBase::InstallExtension(const std::string& extension_path,
- bool with_ui) {
-#if defined(OS_WIN)
- FilePath extension_file_path = FilePath(ASCIIToWide(extension_path));
-#else
- FilePath extension_file_path = FilePath(extension_path);
-#endif
- scoped_refptr<ExtensionProxy> proxy =
- automation()->InstallExtension(extension_file_path, with_ui);
- std::string id;
- if (!proxy.get() || !proxy.get()->GetId(&id))
- return "";
- return id;
-}
-
bool PyUITestBase::GetBookmarkBarState(bool* visible, bool* detached) {
scoped_refptr<BrowserProxy> browser_proxy =
automation()->GetBrowserWindow(0); // Window doesn't matter.

Powered by Google App Engine
This is Rietveld 408576698