From 628d919c679d5cf80c349f49141a32c42ece7ffa Mon Sep 17 00:00:00 2001 From: "nkostylev@chromium.org" Date: Mon, 21 Feb 2011 13:01:02 +0000 Subject: [cros] Run canonicalize when adding/removing whitelisted user. BUG=chromium-os:11720 TEST=manual Review URL: http://codereview.chromium.org/6549003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75543 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/chromeos/webui/accounts_options_handler.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chrome') diff --git a/chrome/browser/chromeos/webui/accounts_options_handler.cc b/chrome/browser/chromeos/webui/accounts_options_handler.cc index 11a9548..6220e07 100644 --- a/chrome/browser/chromeos/webui/accounts_options_handler.cc +++ b/chrome/browser/chromeos/webui/accounts_options_handler.cc @@ -8,6 +8,7 @@ #include "base/scoped_ptr.h" #include "base/utf_string_conversions.h" #include "base/values.h" +#include "chrome/browser/chromeos/login/authenticator.h" #include "chrome/browser/chromeos/login/user_manager.h" #include "chrome/browser/chromeos/user_cros_settings_provider.h" #include "chrome/browser/webui/web_ui_util.h" @@ -74,7 +75,7 @@ void AccountsOptionsHandler::WhitelistUser(const ListValue* args) { return; } - users_settings()->WhitelistUser(email); + users_settings()->WhitelistUser(Authenticator::Canonicalize(email)); } void AccountsOptionsHandler::UnwhitelistUser(const ListValue* args) { @@ -83,7 +84,7 @@ void AccountsOptionsHandler::UnwhitelistUser(const ListValue* args) { return; } - users_settings()->UnwhitelistUser(email); + users_settings()->UnwhitelistUser(Authenticator::Canonicalize(email)); } void AccountsOptionsHandler::FetchUserPictures(const ListValue* args) { -- cgit v1.1