blob: da1828f5b84777ffbb788f176a8240c836e3f49c [file] [log] [blame]
// 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;
}