| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #import "ios/chrome/browser/ui/settings/content_settings_collection_view_control
ler.h" | 5 #import "ios/chrome/browser/ui/settings/content_settings_collection_view_control
ler.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "components/content_settings/core/browser/host_content_settings_map.h" | 8 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 9 #include "components/content_settings/core/common/content_settings.h" | 9 #include "components/content_settings/core/common/content_settings.h" |
| 10 #include "components/content_settings/core/common/content_settings_types.h" | 10 #include "components/content_settings/core/common/content_settings_types.h" |
| 11 #include "components/prefs/pref_change_registrar.h" | 11 #include "components/prefs/pref_change_registrar.h" |
| 12 #include "components/prefs/pref_service.h" | 12 #include "components/prefs/pref_service.h" |
| 13 #include "components/strings/grit/components_strings.h" | 13 #include "components/strings/grit/components_strings.h" |
| 14 #include "components/translate/core/common/translate_pref_names.h" | 14 #include "components/translate/core/browser/translate_pref_names.h" |
| 15 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" | 15 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
| 16 #include "ios/chrome/browser/content_settings/host_content_settings_map_factory.
h" | 16 #include "ios/chrome/browser/content_settings/host_content_settings_map_factory.
h" |
| 17 #import "ios/chrome/browser/prefs/pref_observer_bridge.h" | 17 #import "ios/chrome/browser/prefs/pref_observer_bridge.h" |
| 18 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_detail_item
.h" | 18 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_detail_item
.h" |
| 19 #import "ios/chrome/browser/ui/collection_view/collection_view_model.h" | 19 #import "ios/chrome/browser/ui/collection_view/collection_view_model.h" |
| 20 #import "ios/chrome/browser/ui/settings/block_popups_collection_view_controller.
h" | 20 #import "ios/chrome/browser/ui/settings/block_popups_collection_view_controller.
h" |
| 21 #import "ios/chrome/browser/ui/settings/settings_navigation_controller.h" | 21 #import "ios/chrome/browser/ui/settings/settings_navigation_controller.h" |
| 22 #import "ios/chrome/browser/ui/settings/translate_collection_view_controller.h" | 22 #import "ios/chrome/browser/ui/settings/translate_collection_view_controller.h" |
| 23 #import "ios/chrome/browser/ui/settings/utils/content_setting_backed_boolean.h" | 23 #import "ios/chrome/browser/ui/settings/utils/content_setting_backed_boolean.h" |
| 24 #include "ios/chrome/grit/ios_strings.h" | 24 #include "ios/chrome/grit/ios_strings.h" |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 : l10n_util::GetNSString(IDS_IOS_SETTING_OFF); | 200 : l10n_util::GetNSString(IDS_IOS_SETTING_OFF); |
| 201 // Update the item. | 201 // Update the item. |
| 202 _blockPopupsDetailItem.detailText = subtitle; | 202 _blockPopupsDetailItem.detailText = subtitle; |
| 203 | 203 |
| 204 // Update the cell. | 204 // Update the cell. |
| 205 [self reconfigureCellsForItems:@[ _blockPopupsDetailItem ] | 205 [self reconfigureCellsForItems:@[ _blockPopupsDetailItem ] |
| 206 inSectionWithIdentifier:SectionIdentifierSettings]; | 206 inSectionWithIdentifier:SectionIdentifierSettings]; |
| 207 } | 207 } |
| 208 | 208 |
| 209 @end | 209 @end |
| OLD | NEW |