| OLD | NEW |
| 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/plugins/plugin_prefs_factory.h" | 5 #include "chrome/browser/plugins/plugin_prefs_factory.h" |
| 6 | 6 |
| 7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "chrome/browser/plugins/plugin_prefs.h" | 8 #include "chrome/browser/plugins/plugin_prefs.h" |
| 9 #include "chrome/browser/prefs/pref_service.h" | 9 #include "chrome/browser/prefs/pref_service.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 PrefService::UNSYNCABLE_PREF); | 55 PrefService::UNSYNCABLE_PREF); |
| 56 prefs->RegisterBooleanPref(prefs::kPluginsEnabledInternalPDF, | 56 prefs->RegisterBooleanPref(prefs::kPluginsEnabledInternalPDF, |
| 57 false, | 57 false, |
| 58 PrefService::UNSYNCABLE_PREF); | 58 PrefService::UNSYNCABLE_PREF); |
| 59 prefs->RegisterBooleanPref(prefs::kPluginsEnabledNaCl, | 59 prefs->RegisterBooleanPref(prefs::kPluginsEnabledNaCl, |
| 60 false, | 60 false, |
| 61 PrefService::UNSYNCABLE_PREF); | 61 PrefService::UNSYNCABLE_PREF); |
| 62 prefs->RegisterBooleanPref(prefs::kPluginsMigratedToPepperFlash, | 62 prefs->RegisterBooleanPref(prefs::kPluginsMigratedToPepperFlash, |
| 63 false, | 63 false, |
| 64 PrefService::UNSYNCABLE_PREF); | 64 PrefService::UNSYNCABLE_PREF); |
| 65 prefs->RegisterBooleanPref( |
| 66 prefs::kPluginsRemovedOldComponentPepperFlashSettings, |
| 67 false, |
| 68 PrefService::UNSYNCABLE_PREF); |
| 65 prefs->RegisterListPref(prefs::kPluginsPluginsList, | 69 prefs->RegisterListPref(prefs::kPluginsPluginsList, |
| 66 PrefService::UNSYNCABLE_PREF); | 70 PrefService::UNSYNCABLE_PREF); |
| 67 prefs->RegisterListPref(prefs::kPluginsDisabledPlugins, | 71 prefs->RegisterListPref(prefs::kPluginsDisabledPlugins, |
| 68 PrefService::UNSYNCABLE_PREF); | 72 PrefService::UNSYNCABLE_PREF); |
| 69 prefs->RegisterListPref(prefs::kPluginsDisabledPluginsExceptions, | 73 prefs->RegisterListPref(prefs::kPluginsDisabledPluginsExceptions, |
| 70 PrefService::UNSYNCABLE_PREF); | 74 PrefService::UNSYNCABLE_PREF); |
| 71 prefs->RegisterListPref(prefs::kPluginsEnabledPlugins, | 75 prefs->RegisterListPref(prefs::kPluginsEnabledPlugins, |
| 72 PrefService::UNSYNCABLE_PREF); | 76 PrefService::UNSYNCABLE_PREF); |
| 73 } | 77 } |
| 74 | 78 |
| 75 bool PluginPrefsFactory::ServiceRedirectedInIncognito() const { | 79 bool PluginPrefsFactory::ServiceRedirectedInIncognito() const { |
| 76 return true; | 80 return true; |
| 77 } | 81 } |
| 78 | 82 |
| 79 bool PluginPrefsFactory::ServiceIsNULLWhileTesting() const { | 83 bool PluginPrefsFactory::ServiceIsNULLWhileTesting() const { |
| 80 return true; | 84 return true; |
| 81 } | 85 } |
| 82 | 86 |
| 83 bool PluginPrefsFactory::ServiceIsCreatedWithProfile() const { | 87 bool PluginPrefsFactory::ServiceIsCreatedWithProfile() const { |
| 84 return true; | 88 return true; |
| 85 } | 89 } |
| OLD | NEW |