QUIC - cleanup changes to sync chromium tree with internal source.
[chromium-blink-merge.git] / chrome / browser / plugins / plugin_data_remover_helper.cc
blob0f7d6b78aefff10ad792b42586959b82691bc1a4
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
3 // found in the LICENSE file.
5 #include "chrome/browser/plugins/plugin_data_remover_helper.h"
7 #include "chrome/browser/plugins/plugin_prefs.h"
8 #include "content/public/browser/plugin_data_remover.h"
9 #include "content/public/common/webplugininfo.h"
11 // static
12 bool PluginDataRemoverHelper::IsSupported(PluginPrefs* plugin_prefs) {
13 std::vector<content::WebPluginInfo> plugins;
14 content::PluginDataRemover::GetSupportedPlugins(&plugins);
15 for (std::vector<content::WebPluginInfo>::const_iterator it = plugins.begin();
16 it != plugins.end(); ++it) {
17 if (plugin_prefs->IsPluginEnabled(*it))
18 return true;
20 return false;