Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9217)

Unified Diff: chrome/browser/ui/webui/options/password_manager_handler.cc

Issue 107023009: Disable ability to show passwords when running in Metro. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/options/password_manager_handler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « chrome/browser/ui/webui/options/password_manager_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698