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

Side by Side Diff: chrome/browser/ui/webui/plugins_ui.cc

Issue 1234223003: Enable checks for outdated plugins even when third-party plugin installation is not enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « chrome/browser/plugins/plugin_info_message_filter.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/ui/webui/plugins_ui.h" 5 #include "chrome/browser/ui/webui/plugins_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 plugin_files->Append(plugin_file); 451 plugin_files->Append(plugin_file);
452 } 452 }
453 base::DictionaryValue* group_data = new base::DictionaryValue(); 453 base::DictionaryValue* group_data = new base::DictionaryValue();
454 454
455 group_data->Set("plugin_files", plugin_files); 455 group_data->Set("plugin_files", plugin_files);
456 group_data->SetString("name", group_name); 456 group_data->SetString("name", group_name);
457 group_data->SetString("id", group_identifier); 457 group_data->SetString("id", group_identifier);
458 group_data->SetString("description", active_plugin->desc); 458 group_data->SetString("description", active_plugin->desc);
459 group_data->SetString("version", active_plugin->version); 459 group_data->SetString("version", active_plugin->version);
460 460
461 #if defined(ENABLE_PLUGIN_INSTALLATION)
462 bool out_of_date = plugin_metadata->GetSecurityStatus(*active_plugin) == 461 bool out_of_date = plugin_metadata->GetSecurityStatus(*active_plugin) ==
463 PluginMetadata::SECURITY_STATUS_OUT_OF_DATE; 462 PluginMetadata::SECURITY_STATUS_OUT_OF_DATE;
464 group_data->SetBoolean("critical", out_of_date); 463 group_data->SetBoolean("critical", out_of_date);
465 group_data->SetString("update_url", plugin_metadata->plugin_url().spec()); 464 group_data->SetString("update_url", plugin_metadata->plugin_url().spec());
466 #endif
467 465
468 std::string enabled_mode; 466 std::string enabled_mode;
469 if (all_plugins_enabled_by_policy) { 467 if (all_plugins_enabled_by_policy) {
470 enabled_mode = "enabledByPolicy"; 468 enabled_mode = "enabledByPolicy";
471 } else if (all_plugins_disabled_by_policy) { 469 } else if (all_plugins_disabled_by_policy) {
472 enabled_mode = "disabledByPolicy"; 470 enabled_mode = "disabledByPolicy";
473 } else if (all_plugins_managed_by_policy) { 471 } else if (all_plugins_managed_by_policy) {
474 enabled_mode = "managedByPolicy"; 472 enabled_mode = "managedByPolicy";
475 } else if (group_enabled) { 473 } else if (group_enabled) {
476 enabled_mode = "enabledByUser"; 474 enabled_mode = "enabledByUser";
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 } 517 }
520 518
521 // static 519 // static
522 void PluginsUI::RegisterProfilePrefs( 520 void PluginsUI::RegisterProfilePrefs(
523 user_prefs::PrefRegistrySyncable* registry) { 521 user_prefs::PrefRegistrySyncable* registry) {
524 registry->RegisterBooleanPref(prefs::kPluginsShowDetails, false); 522 registry->RegisterBooleanPref(prefs::kPluginsShowDetails, false);
525 registry->RegisterDictionaryPref( 523 registry->RegisterDictionaryPref(
526 prefs::kContentSettingsPluginWhitelist, 524 prefs::kContentSettingsPluginWhitelist,
527 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 525 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
528 } 526 }
OLDNEW
« no previous file with comments | « chrome/browser/plugins/plugin_info_message_filter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698