| Index: Source/core/html/PasswordInputType.cpp
|
| diff --git a/Source/core/html/PasswordInputType.cpp b/Source/core/html/PasswordInputType.cpp
|
| index 94518ed79a538d91ae10dba2ce04638a72a6c72f..08cc5ba88b77a4a906762251553149410c48dd7c 100644
|
| --- a/Source/core/html/PasswordInputType.cpp
|
| +++ b/Source/core/html/PasswordInputType.cpp
|
| @@ -55,9 +55,9 @@ HTMLElement* PasswordInputType::passwordGeneratorButtonElement() const
|
|
|
| bool PasswordInputType::isPasswordGenerationEnabled() const
|
| {
|
| - Document* document = element()->document();
|
| - ChromeClient* chromeClient = document->page() ? document->page()->chrome().client() : 0;
|
| - return chromeClient && chromeClient->isPasswordGenerationEnabled();
|
| + if (Page* page = element()->document()->page())
|
| + return page->chrome().client().isPasswordGenerationEnabled();
|
| + return false;
|
| }
|
|
|
| bool PasswordInputType::needsContainer() const
|
|
|