diff options
Diffstat (limited to 'chrome/browser/automation')
-rw-r--r-- | chrome/browser/automation/automation_provider.cc | 18 | ||||
-rw-r--r-- | chrome/browser/automation/automation_provider.h | 14 |
2 files changed, 16 insertions, 16 deletions
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc index 8df4ae4..e07b8e6 100644 --- a/chrome/browser/automation/automation_provider.cc +++ b/chrome/browser/automation/automation_provider.cc @@ -398,9 +398,9 @@ void AutomationProvider::OnMessageReceived(const IPC::Message& message) { HandleFindWindowLocationRequest) IPC_MESSAGE_HANDLER(AutomationMsg_BookmarkBarVisibility, GetBookmarkBarVisibility) - IPC_MESSAGE_HANDLER(AutomationMsg_GetSSLInfoBarCount, GetSSLInfoBarCount) - IPC_MESSAGE_HANDLER_DELAY_REPLY(AutomationMsg_ClickSSLInfoBarLink, - ClickSSLInfoBarLink) + IPC_MESSAGE_HANDLER(AutomationMsg_GetInfoBarCount, GetInfoBarCount) + IPC_MESSAGE_HANDLER_DELAY_REPLY(AutomationMsg_ClickInfoBarAccept, + ClickInfoBarAccept) IPC_MESSAGE_HANDLER(AutomationMsg_GetLastNavigationTime, GetLastNavigationTime) IPC_MESSAGE_HANDLER_DELAY_REPLY(AutomationMsg_WaitForNavigation, @@ -1799,7 +1799,7 @@ void TestingAutomationProvider::OnRemoveProvider() { AutomationProviderList::GetInstance()->RemoveProvider(this); } -void AutomationProvider::GetSSLInfoBarCount(int handle, int* count) { +void AutomationProvider::GetInfoBarCount(int handle, int* count) { *count = -1; // -1 means error. if (tab_tracker_->ContainsHandle(handle)) { NavigationController* nav_controller = tab_tracker_->GetResource(handle); @@ -1808,10 +1808,10 @@ void AutomationProvider::GetSSLInfoBarCount(int handle, int* count) { } } -void AutomationProvider::ClickSSLInfoBarLink(int handle, - int info_bar_index, - bool wait_for_navigation, - IPC::Message* reply_message) { +void AutomationProvider::ClickInfoBarAccept(int handle, + int info_bar_index, + bool wait_for_navigation, + IPC::Message* reply_message) { bool success = false; if (tab_tracker_->ContainsHandle(handle)) { NavigationController* nav_controller = tab_tracker_->GetResource(handle); @@ -1837,7 +1837,7 @@ void AutomationProvider::ClickSSLInfoBarLink(int handle, // TODO(phajdan.jr): investgate whether the reply param (currently // AUTOMATION_MSG_NAVIGATION_ERROR) should depend on success. if (!wait_for_navigation || !success) - AutomationMsg_ClickSSLInfoBarLink::WriteReplyParams( + AutomationMsg_ClickInfoBarAccept::WriteReplyParams( reply_message, AUTOMATION_MSG_NAVIGATION_ERROR); } diff --git a/chrome/browser/automation/automation_provider.h b/chrome/browser/automation/automation_provider.h index 66e7de8..5b5ac29 100644 --- a/chrome/browser/automation/automation_provider.h +++ b/chrome/browser/automation/automation_provider.h @@ -413,15 +413,15 @@ class AutomationProvider : public base::RefCounted<AutomationProvider>, const std::string& origin, const std::string& target); - // Retrieves the number of SSL related info-bars currently showing in |count|. - void GetSSLInfoBarCount(int handle, int* count); + // Retrieves the number of info-bars currently showing in |count|. + void GetInfoBarCount(int handle, int* count); - // Causes a click on the link of the info-bar at |info_bar_index|. If - // |wait_for_navigation| is true, it sends the reply after a navigation has + // Causes a click on the "accept" button of the info-bar at |info_bar_index|. + // If |wait_for_navigation| is true, it sends the reply after a navigation has // occurred. - void ClickSSLInfoBarLink(int handle, int info_bar_index, - bool wait_for_navigation, - IPC::Message* reply_message); + void ClickInfoBarAccept(int handle, int info_bar_index, + bool wait_for_navigation, + IPC::Message* reply_message); // Retrieves the last time a navigation occurred for the tab. void GetLastNavigationTime(int handle, int64* last_navigation_time); |