Chromium Code Reviews| Index: chrome/browser/ui/webui/options/password_manager_handler.cc |
| diff --git a/chrome/browser/ui/webui/options/password_manager_handler.cc b/chrome/browser/ui/webui/options/password_manager_handler.cc |
| index 3805f1d022b5349689b44df552f9e1a79573f0b3..f9a3cfa2bfdb87390c6265fb01034588eca0095d 100644 |
| --- a/chrome/browser/ui/webui/options/password_manager_handler.cc |
| +++ b/chrome/browser/ui/webui/options/password_manager_handler.cc |
| @@ -9,6 +9,9 @@ |
| #include "base/strings/string_number_conversions.h" |
| #include "base/strings/utf_string_conversions.h" |
| #include "base/values.h" |
| +#if defined(OS_WIN) && defined(USE_ASH) |
| +#include "chrome/browser/ui/ash/ash_util.h" |
|
Patrick Dubroy
2013/12/12 17:03:33
Includes should be in alphabetical order.
Will Harris
2013/12/12 18:31:09
Done.
|
| +#endif |
| #include "chrome/browser/chrome_notification_types.h" |
| #include "chrome/browser/profiles/profile.h" |
| #include "chrome/common/pref_names.h" |
| @@ -94,6 +97,13 @@ void PasswordManagerHandler::InitializeHandler() { |
| password_manager_presenter_.Initialize(); |
| } |
| +void PasswordManagerHandler::InitializePage() { |
| +#if defined(OS_WIN) && defined(USE_ASH) |
|
Patrick Dubroy
2013/12/12 17:03:33
I think it's easier to just pass a boolean in with
Will Harris
2013/12/12 18:31:09
Done.
|
| + if (chrome::IsNativeWindowInAsh(GetNativeWindow())) |
| + web_ui()->CallJavascriptFunction("PasswordManager.disableShowPassword"); |
| +#endif |
| +} |
| + |
| void PasswordManagerHandler::HandleRemoveSavedPassword(const ListValue* args) { |
| std::string string_value = UTF16ToUTF8(ExtractStringValue(args)); |
| int index; |