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/dom_ui/autofill_options_handler.h" | 5 #include "chrome/browser/dom_ui/autofill_options_handler.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "grit/generated_resources.h" | 10 #include "grit/generated_resources.h" |
11 | 11 |
12 AutoFillOptionsHandler::AutoFillOptionsHandler() { | 12 AutoFillOptionsHandler::AutoFillOptionsHandler() { |
13 } | 13 } |
14 | 14 |
15 AutoFillOptionsHandler::~AutoFillOptionsHandler() { | 15 AutoFillOptionsHandler::~AutoFillOptionsHandler() { |
16 } | 16 } |
17 | 17 |
18 void AutoFillOptionsHandler::GetLocalizedValues( | 18 void AutoFillOptionsHandler::GetLocalizedValues( |
19 DictionaryValue* localized_strings) { | 19 DictionaryValue* localized_strings) { |
20 DCHECK(localized_strings); | 20 DCHECK(localized_strings); |
21 | 21 |
22 localized_strings->SetString("autoFillOptionsTitle", | 22 localized_strings->SetString("autoFillOptionsTitle", |
23 l10n_util::GetStringUTF16(IDS_AUTOFILL_OPTIONS_TITLE)); | 23 l10n_util::GetStringUTF16(IDS_AUTOFILL_OPTIONS_TITLE)); |
| 24 localized_strings->SetString(L"autoFillEnabled", |
| 25 l10n_util::GetString(IDS_OPTIONS_AUTOFILL_ENABLE)); |
| 26 localized_strings->SetString(L"addressesHeader", |
| 27 l10n_util::GetString(IDS_AUTOFILL_ADDRESSES_GROUP_NAME)); |
| 28 localized_strings->SetString(L"creditCardsHeader", |
| 29 l10n_util::GetString(IDS_AUTOFILL_CREDITCARDS_GROUP_NAME)); |
| 30 localized_strings->SetString(L"addAddressButton", |
| 31 l10n_util::GetString(IDS_AUTOFILL_ADD_ADDRESS_BUTTON)); |
| 32 localized_strings->SetString(L"addCreditCardButton", |
| 33 l10n_util::GetString(IDS_AUTOFILL_ADD_CREDITCARD_BUTTON)); |
| 34 localized_strings->SetString(L"editButton", |
| 35 l10n_util::GetString(IDS_AUTOFILL_EDIT_BUTTON)); |
| 36 localized_strings->SetString(L"deleteButton", |
| 37 l10n_util::GetString(IDS_AUTOFILL_DELETE_BUTTON)); |
| 38 localized_strings->SetString(L"helpButton", |
| 39 l10n_util::GetString(IDS_AUTOFILL_HELP_LABEL)); |
24 } | 40 } |
25 | 41 |
26 void AutoFillOptionsHandler::RegisterMessages() { | 42 void AutoFillOptionsHandler::RegisterMessages() { |
27 } | 43 } |
OLD | NEW |