Commit c6162e38 authored by Olivier Robin's avatar Olivier Robin Committed by Commit Bot

Detach PasswordController in PasswordControllerTestSimple

With ARC, there is no garanty that PasswordController will be
deallocated before WebState.
Detach it before the end of the test.

Bug: None
Change-Id: Ib16320cba8dcb59fe79f65c633e063e29a35a614
Reviewed-on: https://chromium-review.googlesource.com/579373Reviewed-by: default avatarVaclav Brozek <vabr@chromium.org>
Commit-Queue: Olivier Robin <olivierrobin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#488219}
parent 12389500
......@@ -1319,6 +1319,7 @@ TEST(PasswordControllerTestSimple, SaveOnNonHTMLLandingPage) {
web_state.SetContentIsHTML(false);
web_state.SetCurrentURL(GURL("https://example.com"));
[passwordController webState:&web_state didLoadPageWithSuccess:YES];
[passwordController detach];
}
// Tests that an HTTP page without a password field does not update the SSL
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment