| Index: Source/core/html/shadow/PasswordGeneratorButtonElement.cpp
|
| diff --git a/Source/core/html/shadow/PasswordGeneratorButtonElement.cpp b/Source/core/html/shadow/PasswordGeneratorButtonElement.cpp
|
| index 8f6b3c6f85e3342bcd7f8ada78e64e996a6839e0..bcc124fa10f9d353432d2842c5d08a69ac0db3e0 100644
|
| --- a/Source/core/html/shadow/PasswordGeneratorButtonElement.cpp
|
| +++ b/Source/core/html/shadow/PasswordGeneratorButtonElement.cpp
|
| @@ -171,8 +171,8 @@ void PasswordGeneratorButtonElement::defaultEventHandler(Event* event)
|
|
|
| RefPtr<PasswordGeneratorButtonElement> protector(this);
|
| if (event->type() == eventNames().clickEvent) {
|
| - if (ChromeClient* chromeClient = document()->page() ? document()->page()->chrome().client() : 0)
|
| - chromeClient->openPasswordGenerator(input.get());
|
| + if (Page* page = document()->page())
|
| + page->chrome().client().openPasswordGenerator(input.get());
|
| event->setDefaultHandled();
|
| }
|
|
|
|
|