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

Unified Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 10257015: Added a new automation hook ExecuteJavascriptInOOBEWebUI() to execute javascript prior to login on… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renamed hook and updated doc strings. Created 8 years, 8 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/browser/automation/testing_automation_provider.cc
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index 09b66736b8342b61d42d3f83977ab601cbb3ca51..94ff95e0d794cfcd64cc914598e122f02ef32b0d 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -1312,9 +1312,7 @@ void TestingAutomationProvider::GetFullscreenBubbleVisibility(int handle,
}
}
-namespace {
-
-void ExecuteJavascriptInRenderViewFrame(
+void TestingAutomationProvider::ExecuteJavascriptInRenderViewFrame(
const string16& frame_xpath,
const string16& script,
IPC::Message* reply_message,
@@ -1330,8 +1328,6 @@ void ExecuteJavascriptInRenderViewFrame(
frame_xpath, script);
}
-} // namespace
-
void TestingAutomationProvider::ExecuteJavascript(
int handle,
const std::wstring& frame_xpath,
@@ -2275,6 +2271,8 @@ void TestingAutomationProvider::SendJSONRequest(int handle,
handler_map["GetLoginInfo"] = &TestingAutomationProvider::GetLoginInfo;
handler_map["ShowCreateAccountUI"] =
&TestingAutomationProvider::ShowCreateAccountUI;
+ handler_map["ExecuteJavascriptInOOBEWebUI"] =
+ &TestingAutomationProvider::ExecuteJavascriptInOOBEWebUI;
handler_map["LoginAsGuest"] = &TestingAutomationProvider::LoginAsGuest;
handler_map["Login"] = &TestingAutomationProvider::Login;

Powered by Google App Engine
This is Rietveld 408576698