Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Side by Side Diff: chrome/browser/browser_about_handler.cc

Issue 7618013: Revert 96409 - Speculatively revert r96364, it's the best bet on the NaCL breakage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 14 matching lines...) Expand all
25 #include "base/tracked_objects.h" 25 #include "base/tracked_objects.h"
26 #include "base/utf_string_conversions.h" 26 #include "base/utf_string_conversions.h"
27 #include "base/values.h" 27 #include "base/values.h"
28 #include "chrome/browser/about_flags.h" 28 #include "chrome/browser/about_flags.h"
29 #include "chrome/browser/browser_process.h" 29 #include "chrome/browser/browser_process.h"
30 #include "chrome/browser/defaults.h" 30 #include "chrome/browser/defaults.h"
31 #include "chrome/browser/memory_details.h" 31 #include "chrome/browser/memory_details.h"
32 #include "chrome/browser/metrics/histogram_synchronizer.h" 32 #include "chrome/browser/metrics/histogram_synchronizer.h"
33 #include "chrome/browser/net/predictor_api.h" 33 #include "chrome/browser/net/predictor_api.h"
34 #include "chrome/browser/net/url_fixer_upper.h" 34 #include "chrome/browser/net/url_fixer_upper.h"
35 #include "chrome/browser/plugin_prefs.h"
35 #include "chrome/browser/profiles/profile.h" 36 #include "chrome/browser/profiles/profile.h"
36 #include "chrome/browser/profiles/profile_manager.h" 37 #include "chrome/browser/profiles/profile_manager.h"
37 #include "chrome/browser/ui/browser_dialogs.h" 38 #include "chrome/browser/ui/browser_dialogs.h"
38 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 39 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
39 #include "chrome/common/about_handler.h" 40 #include "chrome/common/about_handler.h"
40 #include "chrome/common/chrome_paths.h" 41 #include "chrome/common/chrome_paths.h"
41 #include "chrome/common/chrome_version_info.h" 42 #include "chrome/common/chrome_version_info.h"
42 #include "chrome/common/jstemplate_builder.h" 43 #include "chrome/common/jstemplate_builder.h"
43 #include "chrome/common/net/gaia/google_service_auth_error.h" 44 #include "chrome/common/net/gaia/google_service_auth_error.h"
44 #include "chrome/common/render_messages.h" 45 #include "chrome/common/render_messages.h"
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 localized_strings->SetString("webkit_version", webkit_version); 1107 localized_strings->SetString("webkit_version", webkit_version);
1107 localized_strings->SetString("js_engine", js_engine); 1108 localized_strings->SetString("js_engine", js_engine);
1108 localized_strings->SetString("js_version", js_version); 1109 localized_strings->SetString("js_version", js_version);
1109 1110
1110 // Obtain the version of the first enabled Flash plugin. 1111 // Obtain the version of the first enabled Flash plugin.
1111 std::vector<webkit::npapi::WebPluginInfo> info_array; 1112 std::vector<webkit::npapi::WebPluginInfo> info_array;
1112 webkit::npapi::PluginList::Singleton()->GetPluginInfoArray( 1113 webkit::npapi::PluginList::Singleton()->GetPluginInfoArray(
1113 GURL(), "application/x-shockwave-flash", false, NULL, &info_array, NULL); 1114 GURL(), "application/x-shockwave-flash", false, NULL, &info_array, NULL);
1114 string16 flash_version = 1115 string16 flash_version =
1115 l10n_util::GetStringUTF16(IDS_PLUGINS_DISABLED_PLUGIN); 1116 l10n_util::GetStringUTF16(IDS_PLUGINS_DISABLED_PLUGIN);
1117 PluginPrefs* plugin_prefs = PluginPrefs::GetForProfile(profile);
1116 for (size_t i = 0; i < info_array.size(); ++i) { 1118 for (size_t i = 0; i < info_array.size(); ++i) {
1117 if (webkit::npapi::IsPluginEnabled(info_array[i])) { 1119 if (plugin_prefs->IsPluginEnabled(info_array[i])) {
1118 flash_version = info_array[i].version; 1120 flash_version = info_array[i].version;
1119 break; 1121 break;
1120 } 1122 }
1121 } 1123 }
1122 localized_strings->SetString("flash_plugin", "Flash"); 1124 localized_strings->SetString("flash_plugin", "Flash");
1123 localized_strings->SetString("flash_version", flash_version); 1125 localized_strings->SetString("flash_version", flash_version);
1124 localized_strings->SetString("webkit_version", webkit_version); 1126 localized_strings->SetString("webkit_version", webkit_version);
1125 localized_strings->SetString("company", 1127 localized_strings->SetString("company",
1126 l10n_util::GetStringUTF16(IDS_ABOUT_VERSION_COMPANY_NAME)); 1128 l10n_util::GetStringUTF16(IDS_ABOUT_VERSION_COMPANY_NAME));
1127 localized_strings->SetString("copyright", 1129 localized_strings->SetString("copyright",
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
1525 return false; 1527 return false;
1526 } 1528 }
1527 1529
1528 std::vector<std::string> ChromePaths() { 1530 std::vector<std::string> ChromePaths() {
1529 std::vector<std::string> paths; 1531 std::vector<std::string> paths;
1530 paths.reserve(arraysize(kChromePaths)); 1532 paths.reserve(arraysize(kChromePaths));
1531 for (size_t i = 0; i < arraysize(kChromePaths); i++) 1533 for (size_t i = 0; i < arraysize(kChromePaths); i++)
1532 paths.push_back(kChromePaths[i]); 1534 paths.push_back(kChromePaths[i]);
1533 return paths; 1535 return paths;
1534 } 1536 }
OLDNEW
« no previous file with comments | « chrome/browser/automation/testing_automation_provider.cc ('k') | chrome/browser/browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698