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 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
786 bool DeveloperPrivateGetStringsFunction::RunImpl() { | 786 bool DeveloperPrivateGetStringsFunction::RunImpl() { |
787 DictionaryValue* dict = new DictionaryValue(); | 787 DictionaryValue* dict = new DictionaryValue(); |
788 SetResult(dict); | 788 SetResult(dict); |
789 | 789 |
790 #define SET_STRING(id, idr) \ | 790 #define SET_STRING(id, idr) \ |
791 dict->SetString(id, l10n_util::GetStringUTF16(idr)) | 791 dict->SetString(id, l10n_util::GetStringUTF16(idr)) |
792 SET_STRING("extensionSettings", IDS_MANAGE_EXTENSIONS_SETTING_WINDOWS_TITLE); | 792 SET_STRING("extensionSettings", IDS_MANAGE_EXTENSIONS_SETTING_WINDOWS_TITLE); |
793 | 793 |
794 SET_STRING("appsDevtoolNoItems", | 794 SET_STRING("appsDevtoolNoItems", |
795 IDS_APPS_DEVTOOL_NONE_INSTALLED); | 795 IDS_APPS_DEVTOOL_NONE_INSTALLED); |
| 796 SET_STRING("appsDevtoolSearch", IDS_APPS_DEVTOOL_SEARCH); |
796 SET_STRING("appsDevtoolTitle", IDS_APPS_DEVTOOL_TITLE); | 797 SET_STRING("appsDevtoolTitle", IDS_APPS_DEVTOOL_TITLE); |
797 SET_STRING("extensionSettingsGetMoreExtensions", IDS_GET_MORE_EXTENSIONS); | 798 SET_STRING("extensionSettingsGetMoreExtensions", IDS_GET_MORE_EXTENSIONS); |
798 SET_STRING("extensionSettingsExtensionId", IDS_EXTENSIONS_ID); | 799 SET_STRING("extensionSettingsExtensionId", IDS_EXTENSIONS_ID); |
799 SET_STRING("extensionSettingsExtensionPath", IDS_EXTENSIONS_PATH); | 800 SET_STRING("extensionSettingsExtensionPath", IDS_EXTENSIONS_PATH); |
800 SET_STRING("extensionSettingsInspectViews", IDS_EXTENSIONS_INSPECT_VIEWS); | 801 SET_STRING("extensionSettingsInspectViews", IDS_EXTENSIONS_INSPECT_VIEWS); |
801 SET_STRING("extensionSettingsInstallWarnings", | 802 SET_STRING("extensionSettingsInstallWarnings", |
802 IDS_EXTENSIONS_INSTALL_WARNINGS); | 803 IDS_EXTENSIONS_INSTALL_WARNINGS); |
803 SET_STRING("viewIncognito", IDS_EXTENSIONS_VIEW_INCOGNITO); | 804 SET_STRING("viewIncognito", IDS_EXTENSIONS_VIEW_INCOGNITO); |
804 SET_STRING("viewInactive", IDS_EXTENSIONS_VIEW_INACTIVE); | 805 SET_STRING("viewInactive", IDS_EXTENSIONS_VIEW_INACTIVE); |
805 SET_STRING("extensionSettingsEnable", IDS_EXTENSIONS_ENABLE); | 806 SET_STRING("extensionSettingsEnable", IDS_EXTENSIONS_ENABLE); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
857 | 858 |
858 #undef SET_STRING | 859 #undef SET_STRING |
859 return true; | 860 return true; |
860 } | 861 } |
861 | 862 |
862 DeveloperPrivateGetStringsFunction::~DeveloperPrivateGetStringsFunction() {} | 863 DeveloperPrivateGetStringsFunction::~DeveloperPrivateGetStringsFunction() {} |
863 | 864 |
864 } // namespace api | 865 } // namespace api |
865 | 866 |
866 } // namespace extensions | 867 } // namespace extensions |
OLD | NEW |