| 135 | } |
| 136 | |
| 137 | int Alert::SetPassword(const std::string& password) { |
| 138 | LOG(TRACE) << "Entering Alert::SetPassword"; |
| 139 | // If this isn't a security alert, return an error. |
| 140 | if (!this->is_security_alert_) { |
| 141 | return EUNEXPECTEDALERTOPEN; |
| 142 | } |
| 143 | TextBoxFindInfo text_box_find_info; |
| 144 | text_box_find_info.textbox_handle = NULL; |
| 145 | text_box_find_info.match_proc = &Alert::IsPasswordEdit; |
| 146 | return this->SendKeysInternal(password, &text_box_find_info); |
| 147 | } |
| 148 | |
| 149 | int Alert::SendKeysInternal(const std::string& keys, |
| 150 | TextBoxFindInfo* text_box_find_info) { |
no test coverage detected