diff options
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/form_manager_unittest.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/renderer/form_manager_unittest.cc b/chrome/renderer/form_manager_unittest.cc index 6c6a809..c7f55d4 100644 --- a/chrome/renderer/form_manager_unittest.cc +++ b/chrome/renderer/form_manager_unittest.cc @@ -1206,9 +1206,8 @@ TEST_F(FormManagerTest, FillFormExtraFieldInCache) { EXPECT_TRUE(form_manager.FillForm(*form)); // Get the input element we want to find. - WebElement element = - web_frame->document().getElementById(WebString::fromUTF8("firstname")); - WebInputElement input_element = element.toElement<WebInputElement>(); + WebElement element = web_frame->document().getElementById("firstname"); + WebInputElement input_element = element.to<WebInputElement>(); // Find the newly-filled form that contains the input element. FormData form2; |