| Index: chrome/browser/extensions/api/resources_private/resources_private_api.cc
|
| diff --git a/chrome/browser/extensions/api/resources_private/resources_private_api.cc b/chrome/browser/extensions/api/resources_private/resources_private_api.cc
|
| index a4b720e8ad4808b0c0dfb39cfc9c56e94b494611..bfaa40f7f400f3c49a414b282cb953404dc6713b 100644
|
| --- a/chrome/browser/extensions/api/resources_private/resources_private_api.cc
|
| +++ b/chrome/browser/extensions/api/resources_private/resources_private_api.cc
|
| @@ -10,6 +10,7 @@
|
| #include "chrome/browser/browser_process.h"
|
| #include "chrome/common/extensions/api/resources_private.h"
|
| #include "chrome/grit/generated_resources.h"
|
| +#include "components/strings/grit/components_strings.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
| #include "ui/base/webui/web_ui_util.h"
|
|
|
| @@ -28,6 +29,15 @@ void AddStringsForIdentity(base::DictionaryValue* dict) {
|
| l10n_util::GetStringUTF16(IDS_EXTENSION_CONFIRM_PERMISSIONS));
|
| }
|
|
|
| +void AddStringsForPdf(base::DictionaryValue* dict) {
|
| + dict->SetString("passwordPrompt",
|
| + l10n_util::GetStringUTF16(IDS_PDF_NEED_PASSWORD));
|
| + dict->SetString("pageLoading",
|
| + l10n_util::GetStringUTF16(IDS_PDF_PAGE_LOADING));
|
| + dict->SetString("pageLoadFailed",
|
| + l10n_util::GetStringUTF16(IDS_PDF_PAGE_LOAD_FAILED));
|
| +}
|
| +
|
| } // namespace
|
|
|
| namespace get_strings = api::resources_private::GetStrings;
|
| @@ -46,6 +56,9 @@ ExtensionFunction::ResponseAction ResourcesPrivateGetStringsFunction::Run() {
|
| case api::resources_private::COMPONENT_IDENTITY:
|
| AddStringsForIdentity(dict.get());
|
| break;
|
| + case api::resources_private::COMPONENT_PDF:
|
| + AddStringsForPdf(dict.get());
|
| + break;
|
| case api::resources_private::COMPONENT_NONE:
|
| NOTREACHED();
|
| }
|
|
|