blob: da1828f5b84777ffbb788f176a8240c836e3f49c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/plugin_data_remover_helper.h"
#include "chrome/browser/plugin_prefs.h"
#include "content/public/browser/plugin_data_remover.h"
#include "webkit/plugins/webplugininfo.h"
// static
bool PluginDataRemoverHelper::IsSupported(PluginPrefs* plugin_prefs) {
std::vector<webkit::WebPluginInfo> plugins;
content::PluginDataRemover::GetSupportedPlugins(&plugins);
for (std::vector<webkit::WebPluginInfo>::const_iterator it = plugins.begin();
it != plugins.end(); ++it) {
if (plugin_prefs->IsPluginEnabled(*it))
return true;
}
return false;
}
|