OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/dom_ui/accounts_options_handler.h" | 5 #include "chrome/browser/chromeos/dom_ui/accounts_options_handler.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 } | 36 } |
37 | 37 |
38 void AccountsOptionsHandler::GetLocalizedValues( | 38 void AccountsOptionsHandler::GetLocalizedValues( |
39 DictionaryValue* localized_strings) { | 39 DictionaryValue* localized_strings) { |
40 DCHECK(localized_strings); | 40 DCHECK(localized_strings); |
41 localized_strings->SetString("accountsPage", l10n_util::GetStringUTF16( | 41 localized_strings->SetString("accountsPage", l10n_util::GetStringUTF16( |
42 IDS_OPTIONS_ACCOUNTS_TAB_LABEL)); | 42 IDS_OPTIONS_ACCOUNTS_TAB_LABEL)); |
43 | 43 |
44 localized_strings->SetString("allow_BWSI", l10n_util::GetStringUTF16( | 44 localized_strings->SetString("allow_BWSI", l10n_util::GetStringUTF16( |
45 IDS_OPTIONS_ACCOUNTS_ALLOW_BWSI_DESCRIPTION)); | 45 IDS_OPTIONS_ACCOUNTS_ALLOW_BWSI_DESCRIPTION)); |
46 localized_strings->SetString("allow_guest",l10n_util::GetStringUTF16( | 46 localized_strings->SetString("use_whitelist",l10n_util::GetStringUTF16( |
47 IDS_OPTIONS_ACCOUNTS_ALLOW_GUEST_DESCRIPTION)); | 47 IDS_OPTIONS_ACCOUNTS_USE_WHITELIST_DESCRIPTION)); |
48 localized_strings->SetString("show_user_on_signin",l10n_util::GetStringUTF16( | 48 localized_strings->SetString("show_user_on_signin",l10n_util::GetStringUTF16( |
49 IDS_OPTIONS_ACCOUNTS_SHOW_USER_NAMES_ON_SINGIN_DESCRIPTION)); | 49 IDS_OPTIONS_ACCOUNTS_SHOW_USER_NAMES_ON_SINGIN_DESCRIPTION)); |
50 localized_strings->SetString("username_edit_hint",l10n_util::GetStringUTF16( | 50 localized_strings->SetString("username_edit_hint",l10n_util::GetStringUTF16( |
51 IDS_OPTIONS_ACCOUNTS_USERNAME_EDIT_HINT)); | 51 IDS_OPTIONS_ACCOUNTS_USERNAME_EDIT_HINT)); |
52 localized_strings->SetString("username_format",l10n_util::GetStringUTF16( | 52 localized_strings->SetString("username_format",l10n_util::GetStringUTF16( |
53 IDS_OPTIONS_ACCOUNTS_USERNAME_FORMAT)); | 53 IDS_OPTIONS_ACCOUNTS_USERNAME_FORMAT)); |
54 localized_strings->SetString("add_users",l10n_util::GetStringUTF16( | 54 localized_strings->SetString("add_users",l10n_util::GetStringUTF16( |
55 IDS_OPTIONS_ACCOUNTS_ADD_USERS)); | 55 IDS_OPTIONS_ACCOUNTS_ADD_USERS)); |
56 | 56 |
57 localized_strings->SetString("current_user_is_owner", | 57 localized_strings->SetString("current_user_is_owner", |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 user_dict->SetBoolean("owner", false); | 113 user_dict->SetBoolean("owner", false); |
114 | 114 |
115 whitelist_users.Append(user_dict); | 115 whitelist_users.Append(user_dict); |
116 } | 116 } |
117 } | 117 } |
118 | 118 |
119 dom_ui_->CallJavascriptFunction(L"AccountsOptions.addUsers", whitelist_users); | 119 dom_ui_->CallJavascriptFunction(L"AccountsOptions.addUsers", whitelist_users); |
120 } | 120 } |
121 | 121 |
122 } // namespace chromeos | 122 } // namespace chromeos |
OLD | NEW |