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/passwords_exceptions_handler.h" | 5 #include "chrome/browser/dom_ui/passwords_exceptions_handler.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/profile.h" | 10 #include "chrome/browser/profile.h" |
11 #include "chrome/common/url_constants.h" | 11 #include "chrome/common/url_constants.h" |
12 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
13 #include "grit/locale_settings.h" | 13 #include "grit/locale_settings.h" |
14 | 14 |
15 PasswordsExceptionsHandler::PasswordsExceptionsHandler() { | 15 PasswordsExceptionsHandler::PasswordsExceptionsHandler() { |
16 } | 16 } |
17 | 17 |
18 PasswordsExceptionsHandler::~PasswordsExceptionsHandler() { | 18 PasswordsExceptionsHandler::~PasswordsExceptionsHandler() { |
19 } | 19 } |
20 | 20 |
21 void PasswordsExceptionsHandler::GetLocalizedValues( | 21 void PasswordsExceptionsHandler::GetLocalizedValues( |
22 DictionaryValue* localized_strings) { | 22 DictionaryValue* localized_strings) { |
23 DCHECK(localized_strings); | 23 DCHECK(localized_strings); |
24 | 24 |
25 localized_strings->SetString(L"passwordsExceptionsTitle", | 25 localized_strings->SetString(L"passwordsExceptionsTitle", |
26 l10n_util::GetString(IDS_PASSWORDS_EXCEPTIONS_WINDOW_TITLE)); | 26 l10n_util::GetString(IDS_PASSWORDS_EXCEPTIONS_WINDOW_TITLE)); |
| 27 localized_strings->SetString(L"passwordsTabTitle", |
| 28 l10n_util::GetString(IDS_PASSWORDS_SHOW_PASSWORDS_TAB_TITLE)); |
| 29 localized_strings->SetString(L"exceptionsTabTitle", |
| 30 l10n_util::GetString(IDS_PASSWORDS_EXCEPTIONS_TAB_TITLE)); |
27 } | 31 } |
28 | 32 |
29 void PasswordsExceptionsHandler::RegisterMessages() { | 33 void PasswordsExceptionsHandler::RegisterMessages() { |
30 } | 34 } |
OLD | NEW |