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

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: change to use localized strings instead 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
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..39763c1b960a0519481024c132b8955e68498a78 100644
--- a/chrome/browser/ui/webui/options/password_manager_handler.cc
+++ b/chrome/browser/ui/webui/options/password_manager_handler.cc
@@ -11,6 +11,9 @@
#include "base/values.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/profiles/profile.h"
+#if defined(OS_WIN) && defined(USE_ASH)
+#include "chrome/browser/ui/ash/ash_util.h"
+#endif
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
#include "components/autofill/core/common/password_form.h"
@@ -69,6 +72,11 @@ void PasswordManagerHandler::GetLocalizedValues(
localized_strings->SetString("passwordManagerLearnMoreURL",
chrome::kPasswordManagerLearnMoreURL);
+
+#if defined(OS_WIN) && defined(USE_ASH)
Patrick Dubroy 2013/12/13 14:19:10 Can you add a comment here to explain what this is
Will Harris 2013/12/16 17:18:28 Done.
+ if (chrome::IsNativeWindowInAsh(GetNativeWindow()))
+ localized_strings->SetBoolean("disableShowPasswords", true);
+#endif
}
void PasswordManagerHandler::RegisterMessages() {

Powered by Google App Engine
This is Rietveld 408576698