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

Unified Diff: chrome/test/pyautolib/pyautolib.cc

Issue 7548024: Refactor: Make PyAuto InstallExtension() take a string. Delete dead code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change AutomationMsg_InstallExtension back to FilePath. Created 9 years, 5 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
« no previous file with comments | « chrome/test/pyautolib/pyautolib.h ('k') | chrome/test/pyautolib/pyautolib.i » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/pyautolib/pyautolib.cc
diff --git a/chrome/test/pyautolib/pyautolib.cc b/chrome/test/pyautolib/pyautolib.cc
index 3db59eb2682ff41d710a798d67b91eb94770dbc7..d0788b5a274ca55ca6b6720f907831ae87a8205b 100644
--- a/chrome/test/pyautolib/pyautolib.cc
+++ b/chrome/test/pyautolib/pyautolib.cc
@@ -202,10 +202,15 @@ int PyUITestBase::GetBrowserWindowCount() {
return num_windows;
}
-std::string PyUITestBase::InstallExtension(const FilePath& crx_file,
+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(crx_file, with_ui);
+ automation()->InstallExtension(FilePath(extension_file_path), with_ui);
kkania 2011/08/03 23:52:46 no reason to copy the FilePath here
std::string id;
if (!proxy.get() || !proxy.get()->GetId(&id))
return "";
« no previous file with comments | « chrome/test/pyautolib/pyautolib.h ('k') | chrome/test/pyautolib/pyautolib.i » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698