1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/webui/options/supervised_user_learn_more_handler.h"
7 #include "base/strings/utf_string_conversions.h"
8 #include "base/values.h"
9 #include "chrome/common/url_constants.h"
10 #include "chrome/grit/generated_resources.h"
11 #include "ui/base/l10n/l10n_util.h"
15 SupervisedUserLearnMoreHandler::SupervisedUserLearnMoreHandler() {
18 SupervisedUserLearnMoreHandler::~SupervisedUserLearnMoreHandler() {
21 void SupervisedUserLearnMoreHandler::GetLocalizedValues(
22 base::DictionaryValue
* localized_strings
) {
23 DCHECK(localized_strings
);
25 static OptionsStringResource resources
[] = {
26 { "supervisedUserLearnMoreTitle",
27 IDS_LEGACY_SUPERVISED_USER_LEARN_MORE_TITLE
},
28 { "supervisedUserLearnMoreDone",
29 IDS_LEGACY_SUPERVISED_USER_LEARN_MORE_DONE_BUTTON
},
32 base::string16 supervised_user_dashboard_display
=
33 base::ASCIIToUTF16(chrome::kLegacySupervisedUserManagementDisplayURL
);
34 localized_strings
->SetString("supervisedUserLearnMoreText",
35 l10n_util::GetStringFUTF16(IDS_LEGACY_SUPERVISED_USER_LEARN_MORE_TEXT
,
36 supervised_user_dashboard_display
));
38 RegisterStrings(localized_strings
, resources
, arraysize(resources
));
41 } // namespace options