OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/extensions/api/developer_private/developer_private_api.
h" | 5 #include "chrome/browser/extensions/api/developer_private/developer_private_api.
h" |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 DeveloperPrivateChoosePathFunction::~DeveloperPrivateChoosePathFunction() {} | 770 DeveloperPrivateChoosePathFunction::~DeveloperPrivateChoosePathFunction() {} |
771 | 771 |
772 bool DeveloperPrivateGetStringsFunction::RunImpl() { | 772 bool DeveloperPrivateGetStringsFunction::RunImpl() { |
773 DictionaryValue* dict = new DictionaryValue(); | 773 DictionaryValue* dict = new DictionaryValue(); |
774 SetResult(dict); | 774 SetResult(dict); |
775 | 775 |
776 #define SET_STRING(id, idr) \ | 776 #define SET_STRING(id, idr) \ |
777 dict->SetString(id, l10n_util::GetStringUTF16(idr)) | 777 dict->SetString(id, l10n_util::GetStringUTF16(idr)) |
778 SET_STRING("extensionSettings", IDS_MANAGE_EXTENSIONS_SETTING_WINDOWS_TITLE); | 778 SET_STRING("extensionSettings", IDS_MANAGE_EXTENSIONS_SETTING_WINDOWS_TITLE); |
779 | 779 |
780 SET_STRING("appsDevtoolNoItems", | 780 SET_STRING("appsDevtoolNoApps", IDS_APPS_DEVTOOL_NO_APPS_INSTALLED); |
781 IDS_APPS_DEVTOOL_NONE_INSTALLED); | 781 SET_STRING("appsDevtoolNoExtensions", |
| 782 IDS_EXTENSIONS_NONE_INSTALLED); |
782 SET_STRING("appsDevtoolTitle", IDS_APPS_DEVTOOL_TITLE); | 783 SET_STRING("appsDevtoolTitle", IDS_APPS_DEVTOOL_TITLE); |
783 SET_STRING("extensionSettingsGetMoreExtensions", IDS_GET_MORE_EXTENSIONS); | 784 SET_STRING("extensionSettingsGetMoreExtensions", IDS_GET_MORE_EXTENSIONS); |
784 SET_STRING("extensionSettingsExtensionId", IDS_EXTENSIONS_ID); | 785 SET_STRING("extensionSettingsExtensionId", IDS_EXTENSIONS_ID); |
785 SET_STRING("extensionSettingsExtensionPath", IDS_EXTENSIONS_PATH); | 786 SET_STRING("extensionSettingsExtensionPath", IDS_EXTENSIONS_PATH); |
786 SET_STRING("extensionSettingsInspectViews", IDS_EXTENSIONS_INSPECT_VIEWS); | 787 SET_STRING("extensionSettingsInspectViews", IDS_EXTENSIONS_INSPECT_VIEWS); |
787 SET_STRING("extensionSettingsInstallWarnings", | 788 SET_STRING("extensionSettingsInstallWarnings", |
788 IDS_EXTENSIONS_INSTALL_WARNINGS); | 789 IDS_EXTENSIONS_INSTALL_WARNINGS); |
789 SET_STRING("viewIncognito", IDS_EXTENSIONS_VIEW_INCOGNITO); | 790 SET_STRING("viewIncognito", IDS_EXTENSIONS_VIEW_INCOGNITO); |
790 SET_STRING("viewInactive", IDS_EXTENSIONS_VIEW_INACTIVE); | 791 SET_STRING("viewInactive", IDS_EXTENSIONS_VIEW_INACTIVE); |
791 SET_STRING("extensionSettingsEnable", IDS_EXTENSIONS_ENABLE); | 792 SET_STRING("extensionSettingsEnable", IDS_EXTENSIONS_ENABLE); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 | 844 |
844 #undef SET_STRING | 845 #undef SET_STRING |
845 return true; | 846 return true; |
846 } | 847 } |
847 | 848 |
848 DeveloperPrivateGetStringsFunction::~DeveloperPrivateGetStringsFunction() {} | 849 DeveloperPrivateGetStringsFunction::~DeveloperPrivateGetStringsFunction() {} |
849 | 850 |
850 } // namespace api | 851 } // namespace api |
851 | 852 |
852 } // namespace extensions | 853 } // namespace extensions |
OLD | NEW |