| 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 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 811 DeveloperPrivateChoosePathFunction::~DeveloperPrivateChoosePathFunction() {} | 811 DeveloperPrivateChoosePathFunction::~DeveloperPrivateChoosePathFunction() {} |
| 812 | 812 |
| 813 bool DeveloperPrivateGetStringsFunction::RunImpl() { | 813 bool DeveloperPrivateGetStringsFunction::RunImpl() { |
| 814 DictionaryValue* dict = new DictionaryValue(); | 814 DictionaryValue* dict = new DictionaryValue(); |
| 815 SetResult(dict); | 815 SetResult(dict); |
| 816 | 816 |
| 817 #define SET_STRING(id, idr) \ | 817 #define SET_STRING(id, idr) \ |
| 818 dict->SetString(id, l10n_util::GetStringUTF16(idr)) | 818 dict->SetString(id, l10n_util::GetStringUTF16(idr)) |
| 819 SET_STRING("extensionSettings", IDS_MANAGE_EXTENSIONS_SETTING_WINDOWS_TITLE); | 819 SET_STRING("extensionSettings", IDS_MANAGE_EXTENSIONS_SETTING_WINDOWS_TITLE); |
| 820 | 820 |
| 821 SET_STRING("appsDevtoolNoItems", | |
| 822 IDS_APPS_DEVTOOL_NONE_INSTALLED); | |
| 823 SET_STRING("appsDevtoolSearch", IDS_APPS_DEVTOOL_SEARCH); | 821 SET_STRING("appsDevtoolSearch", IDS_APPS_DEVTOOL_SEARCH); |
| 822 SET_STRING("appsDevtoolNoApps", IDS_APPS_DEVTOOL_NO_APPS_INSTALLED); |
| 823 SET_STRING("appsDevtoolApps", IDS_APPS_DEVTOOL_APPS_INSTALLED); |
| 824 SET_STRING("appsDevtoolExtensions", IDS_APPS_DEVTOOL_EXTENSIONS_INSTALLED); |
| 825 SET_STRING("appsDevtoolNoExtensions", |
| 826 IDS_EXTENSIONS_NONE_INSTALLED); |
| 824 SET_STRING("appsDevtoolTitle", IDS_APPS_DEVTOOL_TITLE); | 827 SET_STRING("appsDevtoolTitle", IDS_APPS_DEVTOOL_TITLE); |
| 825 SET_STRING("extensionSettingsGetMoreExtensions", IDS_GET_MORE_EXTENSIONS); | 828 SET_STRING("extensionSettingsGetMoreExtensions", IDS_GET_MORE_EXTENSIONS); |
| 826 SET_STRING("extensionSettingsExtensionId", IDS_EXTENSIONS_ID); | 829 SET_STRING("extensionSettingsExtensionId", IDS_EXTENSIONS_ID); |
| 827 SET_STRING("extensionSettingsExtensionPath", IDS_EXTENSIONS_PATH); | 830 SET_STRING("extensionSettingsExtensionPath", IDS_EXTENSIONS_PATH); |
| 828 SET_STRING("extensionSettingsInspectViews", IDS_EXTENSIONS_INSPECT_VIEWS); | 831 SET_STRING("extensionSettingsInspectViews", IDS_EXTENSIONS_INSPECT_VIEWS); |
| 829 SET_STRING("extensionSettingsInstallWarnings", | 832 SET_STRING("extensionSettingsInstallWarnings", |
| 830 IDS_EXTENSIONS_INSTALL_WARNINGS); | 833 IDS_EXTENSIONS_INSTALL_WARNINGS); |
| 831 SET_STRING("viewIncognito", IDS_EXTENSIONS_VIEW_INCOGNITO); | 834 SET_STRING("viewIncognito", IDS_EXTENSIONS_VIEW_INCOGNITO); |
| 832 SET_STRING("viewInactive", IDS_EXTENSIONS_VIEW_INACTIVE); | 835 SET_STRING("viewInactive", IDS_EXTENSIONS_VIEW_INACTIVE); |
| 833 SET_STRING("extensionSettingsEnable", IDS_EXTENSIONS_ENABLE); | 836 SET_STRING("extensionSettingsEnable", IDS_EXTENSIONS_ENABLE); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 885 | 888 |
| 886 #undef SET_STRING | 889 #undef SET_STRING |
| 887 return true; | 890 return true; |
| 888 } | 891 } |
| 889 | 892 |
| 890 DeveloperPrivateGetStringsFunction::~DeveloperPrivateGetStringsFunction() {} | 893 DeveloperPrivateGetStringsFunction::~DeveloperPrivateGetStringsFunction() {} |
| 891 | 894 |
| 892 } // namespace api | 895 } // namespace api |
| 893 | 896 |
| 894 } // namespace extensions | 897 } // namespace extensions |
| OLD | NEW |