| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/policy_content_settings_provider.h" | 5 #include "chrome/browser/content_settings/policy_content_settings_provider.h" |
| 6 | 6 |
| 7 #include <string> |
| 8 |
| 7 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 8 #include "chrome/browser/browser_thread.h" | 10 #include "chrome/browser/browser_thread.h" |
| 9 #include "chrome/browser/content_settings/content_settings_details.h" | 11 #include "chrome/browser/content_settings/content_settings_details.h" |
| 10 #include "chrome/browser/content_settings/content_settings_pattern.h" | 12 #include "chrome/browser/content_settings/content_settings_pattern.h" |
| 11 #include "chrome/browser/prefs/pref_service.h" | 13 #include "chrome/browser/prefs/pref_service.h" |
| 12 #include "chrome/browser/prefs/scoped_pref_update.h" | 14 #include "chrome/browser/prefs/scoped_pref_update.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/common/chrome_switches.h" | |
| 15 #include "chrome/common/notification_details.h" | 16 #include "chrome/common/notification_details.h" |
| 16 #include "chrome/common/notification_service.h" | 17 #include "chrome/common/notification_service.h" |
| 17 #include "chrome/common/notification_source.h" | 18 #include "chrome/common/notification_source.h" |
| 18 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
| 19 | 20 |
| 20 namespace { | 21 namespace { |
| 21 | 22 |
| 22 // Base pref path of the prefs that contain the managed default content | 23 // Base pref path of the prefs that contain the managed default content |
| 23 // settings values. | 24 // settings values. |
| 24 const std::string kManagedSettings = | 25 const std::string kManagedSettings = |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 CONTENT_SETTING_DEFAULT); | 196 CONTENT_SETTING_DEFAULT); |
| 196 prefs->RegisterIntegerPref(prefs::kManagedDefaultImagesSetting, | 197 prefs->RegisterIntegerPref(prefs::kManagedDefaultImagesSetting, |
| 197 CONTENT_SETTING_DEFAULT); | 198 CONTENT_SETTING_DEFAULT); |
| 198 prefs->RegisterIntegerPref(prefs::kManagedDefaultJavaScriptSetting, | 199 prefs->RegisterIntegerPref(prefs::kManagedDefaultJavaScriptSetting, |
| 199 CONTENT_SETTING_DEFAULT); | 200 CONTENT_SETTING_DEFAULT); |
| 200 prefs->RegisterIntegerPref(prefs::kManagedDefaultPluginsSetting, | 201 prefs->RegisterIntegerPref(prefs::kManagedDefaultPluginsSetting, |
| 201 CONTENT_SETTING_DEFAULT); | 202 CONTENT_SETTING_DEFAULT); |
| 202 prefs->RegisterIntegerPref(prefs::kManagedDefaultPopupsSetting, | 203 prefs->RegisterIntegerPref(prefs::kManagedDefaultPopupsSetting, |
| 203 CONTENT_SETTING_DEFAULT); | 204 CONTENT_SETTING_DEFAULT); |
| 204 } | 205 } |
| OLD | NEW |