| OLD | NEW |
| (Empty) | |
| 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. |
| 4 |
| 5 #include "chrome/browser/pepper_flash_settings_helper.h" |
| 6 |
| 7 #include "chrome/browser/pepper_flash_settings_manager.h" |
| 8 #include "chrome/browser/plugin_prefs.h" |
| 9 #include "webkit/plugins/webplugininfo.h" |
| 10 |
| 11 PepperFlashSettingsHelper::PepperFlashSettingsHelper(const char* pref_name) |
| 12 : pref_name_(pref_name) { |
| 13 } |
| 14 |
| 15 PepperFlashSettingsHelper::~PepperFlashSettingsHelper() { |
| 16 } |
| 17 |
| 18 const char* PepperFlashSettingsHelper::GetPrefName() const { |
| 19 return pref_name_.c_str(); |
| 20 } |
| 21 |
| 22 bool PepperFlashSettingsHelper::CalculatePrefValue(PluginPrefs* plugin_prefs) { |
| 23 return PepperFlashSettingsManager::IsPepperFlashInUse(plugin_prefs, NULL); |
| 24 } |
| OLD | NEW |