| 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 "components/content_settings/core/browser/content_settings_default_prov
ider.h" | 5 #include "components/content_settings/core/browser/content_settings_default_prov
ider.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram_macros.h" |
| 15 #include "base/prefs/pref_registry.h" | 15 #include "base/prefs/pref_registry.h" |
| 16 #include "base/prefs/pref_service.h" | 16 #include "base/prefs/pref_service.h" |
| 17 #include "base/prefs/scoped_user_pref_update.h" | 17 #include "base/prefs/scoped_user_pref_update.h" |
| 18 #include "components/content_settings/core/browser/content_settings_rule.h" | 18 #include "components/content_settings/core/browser/content_settings_rule.h" |
| 19 #include "components/content_settings/core/browser/content_settings_utils.h" | 19 #include "components/content_settings/core/browser/content_settings_utils.h" |
| 20 #include "components/content_settings/core/browser/plugins_field_trial.h" | 20 #include "components/content_settings/core/browser/plugins_field_trial.h" |
| 21 #include "components/content_settings/core/common/content_settings.h" | 21 #include "components/content_settings/core/common/content_settings.h" |
| 22 #include "components/content_settings/core/common/content_settings_pattern.h" | 22 #include "components/content_settings/core/common/content_settings_pattern.h" |
| 23 #include "components/content_settings/core/common/pref_names.h" | 23 #include "components/content_settings/core/common/pref_names.h" |
| 24 #include "components/pref_registry/pref_registry_syncable.h" | 24 #include "components/pref_registry/pref_registry_syncable.h" |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 scoped_ptr<base::Value> value = ReadIndividualPref( | 542 scoped_ptr<base::Value> value = ReadIndividualPref( |
| 543 CONTENT_SETTINGS_TYPE_MEDIASTREAM); | 543 CONTENT_SETTINGS_TYPE_MEDIASTREAM); |
| 544 WriteIndividualPref(CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC, value.get()); | 544 WriteIndividualPref(CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC, value.get()); |
| 545 WriteIndividualPref(CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA, value.get()); | 545 WriteIndividualPref(CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA, value.get()); |
| 546 WriteIndividualPref(CONTENT_SETTINGS_TYPE_MEDIASTREAM, NULL); | 546 WriteIndividualPref(CONTENT_SETTINGS_TYPE_MEDIASTREAM, NULL); |
| 547 | 547 |
| 548 prefs_->SetBoolean(prefs::kMigratedDefaultMediaStreamSetting, true); | 548 prefs_->SetBoolean(prefs::kMigratedDefaultMediaStreamSetting, true); |
| 549 } | 549 } |
| 550 | 550 |
| 551 } // namespace content_settings | 551 } // namespace content_settings |
| OLD | NEW |