Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser_about_handler.h" | 5 #include "chrome/browser/browser_about_handler.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 50 #include "content/browser/renderer_host/render_view_host.h" | 50 #include "content/browser/renderer_host/render_view_host.h" |
| 51 #include "googleurl/src/gurl.h" | 51 #include "googleurl/src/gurl.h" |
| 52 #include "grit/browser_resources.h" | 52 #include "grit/browser_resources.h" |
| 53 #include "grit/chromium_strings.h" | 53 #include "grit/chromium_strings.h" |
| 54 #include "grit/generated_resources.h" | 54 #include "grit/generated_resources.h" |
| 55 #include "grit/locale_settings.h" | 55 #include "grit/locale_settings.h" |
| 56 #include "net/base/escape.h" | 56 #include "net/base/escape.h" |
| 57 #include "ui/base/l10n/l10n_util.h" | 57 #include "ui/base/l10n/l10n_util.h" |
| 58 #include "ui/base/resource/resource_bundle.h" | 58 #include "ui/base/resource/resource_bundle.h" |
| 59 #include "webkit/glue/webkit_glue.h" | 59 #include "webkit/glue/webkit_glue.h" |
| 60 #include "webkit/glue/plugins/plugin_list.h" | |
| 61 #include "webkit/plugins/npapi/webplugininfo.h" | |
| 62 | |
| 60 #ifdef CHROME_V8 | 63 #ifdef CHROME_V8 |
| 61 #include "v8/include/v8.h" | 64 #include "v8/include/v8.h" |
| 62 #endif | 65 #endif |
| 63 | 66 |
| 64 #if defined(OS_WIN) | 67 #if defined(OS_WIN) |
| 65 #include "chrome/browser/enumerate_modules_model_win.h" | 68 #include "chrome/browser/enumerate_modules_model_win.h" |
| 66 #elif defined(OS_CHROMEOS) | 69 #elif defined(OS_CHROMEOS) |
| 67 #include "chrome/browser/chromeos/cros/cros_library.h" | 70 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 68 #include "chrome/browser/chromeos/cros/network_library.h" | 71 #include "chrome/browser/chromeos/cros/network_library.h" |
| 69 #include "chrome/browser/chromeos/cros/syslogs_library.h" | 72 #include "chrome/browser/chromeos/cros/syslogs_library.h" |
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 744 std::string js_version(v8::V8::GetVersion()); | 747 std::string js_version(v8::V8::GetVersion()); |
| 745 std::string js_engine = "V8"; | 748 std::string js_engine = "V8"; |
| 746 #else | 749 #else |
| 747 std::string js_version = webkit_version; | 750 std::string js_version = webkit_version; |
| 748 std::string js_engine = "JavaScriptCore"; | 751 std::string js_engine = "JavaScriptCore"; |
| 749 #endif | 752 #endif |
| 750 | 753 |
| 751 localized_strings->SetString("name", | 754 localized_strings->SetString("name", |
| 752 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); | 755 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); |
| 753 localized_strings->SetString("version", version_info.Version()); | 756 localized_strings->SetString("version", version_info.Version()); |
| 754 localized_strings->SetString("version_modifier", | 757 { |
| 755 platform_util::GetVersionStringModifier()); | 758 // Bug 79458: Need to evaluate the use of getting the version string on |
| 759 // this thread. | |
| 760 base::ThreadRestrictions::ScopedAllowIO allow_io; | |
| 761 localized_strings->SetString("version_modifier", | |
| 762 platform_util::GetVersionStringModifier()); | |
| 763 } | |
| 756 localized_strings->SetString("js_engine", js_engine); | 764 localized_strings->SetString("js_engine", js_engine); |
| 757 localized_strings->SetString("js_version", js_version); | 765 localized_strings->SetString("js_version", js_version); |
| 766 | |
| 767 // Obtain the version of the first enabled Flash plugin. | |
| 768 std::vector<webkit::npapi::WebPluginInfo> info_array; | |
| 769 webkit::npapi::PluginList::Singleton()->GetPluginInfoArray( | |
| 770 GURL(), "application/x-shockwave-flash", false, &info_array, NULL); | |
| 771 string16 flash_version = | |
| 772 l10n_util::GetStringUTF16(IDS_PLUGINS_DISABLED_PLUGIN); | |
| 773 for (size_t i = 0; i < info_array.size(); ++i) { | |
| 774 if (webkit::npapi::IsPluginEnabled(info_array[i])) { | |
|
cpu_(ooo_6.6-7.5)
2011/04/15 21:16:33
does this cause the plugin dll to be loaded on thi
| |
| 775 flash_version = info_array[i].version; | |
| 776 break; | |
| 777 } | |
| 778 } | |
| 779 localized_strings->SetString("flash_plugin", "Flash"); | |
| 780 localized_strings->SetString("flash_version", flash_version); | |
| 758 localized_strings->SetString("webkit_version", webkit_version); | 781 localized_strings->SetString("webkit_version", webkit_version); |
| 759 localized_strings->SetString("company", | 782 localized_strings->SetString("company", |
| 760 l10n_util::GetStringUTF16(IDS_ABOUT_VERSION_COMPANY_NAME)); | 783 l10n_util::GetStringUTF16(IDS_ABOUT_VERSION_COMPANY_NAME)); |
| 761 localized_strings->SetString("copyright", | 784 localized_strings->SetString("copyright", |
| 762 l10n_util::GetStringUTF16(IDS_ABOUT_VERSION_COPYRIGHT)); | 785 l10n_util::GetStringUTF16(IDS_ABOUT_VERSION_COPYRIGHT)); |
| 763 localized_strings->SetString("cl", version_info.LastChange()); | 786 localized_strings->SetString("cl", version_info.LastChange()); |
| 764 localized_strings->SetString("official", | 787 localized_strings->SetString("official", |
| 765 l10n_util::GetStringUTF16( | 788 l10n_util::GetStringUTF16( |
| 766 version_info.IsOfficialBuild() ? | 789 version_info.IsOfficialBuild() ? |
| 767 IDS_ABOUT_VERSION_OFFICIAL | 790 IDS_ABOUT_VERSION_OFFICIAL |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1209 return false; | 1232 return false; |
| 1210 } | 1233 } |
| 1211 | 1234 |
| 1212 std::vector<std::string> AboutPaths() { | 1235 std::vector<std::string> AboutPaths() { |
| 1213 std::vector<std::string> paths; | 1236 std::vector<std::string> paths; |
| 1214 paths.reserve(arraysize(kAllAboutPaths)); | 1237 paths.reserve(arraysize(kAllAboutPaths)); |
| 1215 for (size_t i = 0; i < arraysize(kAllAboutPaths); i++) | 1238 for (size_t i = 0; i < arraysize(kAllAboutPaths); i++) |
| 1216 paths.push_back(kAllAboutPaths[i]); | 1239 paths.push_back(kAllAboutPaths[i]); |
| 1217 return paths; | 1240 return paths; |
| 1218 } | 1241 } |
| OLD | NEW |