| 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/content_settings/host_content_settings_map.h" | 5 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 } | 145 } |
| 146 #endif | 146 #endif |
| 147 | 147 |
| 148 // static | 148 // static |
| 149 void HostContentSettingsMap::RegisterProfilePrefs( | 149 void HostContentSettingsMap::RegisterProfilePrefs( |
| 150 user_prefs::PrefRegistrySyncable* registry) { | 150 user_prefs::PrefRegistrySyncable* registry) { |
| 151 registry->RegisterIntegerPref( | 151 registry->RegisterIntegerPref( |
| 152 prefs::kContentSettingsWindowLastTabIndex, | 152 prefs::kContentSettingsWindowLastTabIndex, |
| 153 0, | 153 0, |
| 154 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 154 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 155 registry->RegisterIntegerPref( | |
| 156 prefs::kContentSettingsDefaultWhitelistVersion, | |
| 157 0, | |
| 158 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | |
| 159 registry->RegisterBooleanPref( | 155 registry->RegisterBooleanPref( |
| 160 prefs::kContentSettingsClearOnExitMigrated, | 156 prefs::kContentSettingsClearOnExitMigrated, |
| 161 false, | 157 false, |
| 162 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 158 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 163 | 159 |
| 164 // Register the prefs for the content settings providers. | 160 // Register the prefs for the content settings providers. |
| 165 content_settings::DefaultProvider::RegisterProfilePrefs(registry); | 161 content_settings::DefaultProvider::RegisterProfilePrefs(registry); |
| 166 content_settings::PrefProvider::RegisterProfilePrefs(registry); | 162 content_settings::PrefProvider::RegisterProfilePrefs(registry); |
| 167 content_settings::PolicyProvider::RegisterProfilePrefs(registry); | 163 content_settings::PolicyProvider::RegisterProfilePrefs(registry); |
| 168 } | 164 } |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 } | 752 } |
| 757 | 753 |
| 758 NOTREACHED(); | 754 NOTREACHED(); |
| 759 return DEFAULT_PROVIDER; | 755 return DEFAULT_PROVIDER; |
| 760 } | 756 } |
| 761 | 757 |
| 762 content_settings::PrefProvider* HostContentSettingsMap::GetPrefProvider() { | 758 content_settings::PrefProvider* HostContentSettingsMap::GetPrefProvider() { |
| 763 return static_cast<content_settings::PrefProvider*>( | 759 return static_cast<content_settings::PrefProvider*>( |
| 764 content_settings_providers_[PREF_PROVIDER]); | 760 content_settings_providers_[PREF_PROVIDER]); |
| 765 } | 761 } |
| OLD | NEW |