| 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/browsing_data/browsing_data_remover.h" | 5 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 content::DOMStorageContext* GetDOMStorageContext() override { | 208 content::DOMStorageContext* GetDOMStorageContext() override { |
| 209 return nullptr; | 209 return nullptr; |
| 210 } | 210 } |
| 211 content::IndexedDBContext* GetIndexedDBContext() override { return nullptr; } | 211 content::IndexedDBContext* GetIndexedDBContext() override { return nullptr; } |
| 212 content::ServiceWorkerContext* GetServiceWorkerContext() override { | 212 content::ServiceWorkerContext* GetServiceWorkerContext() override { |
| 213 return nullptr; | 213 return nullptr; |
| 214 } | 214 } |
| 215 content::CacheStorageContext* GetCacheStorageContext() override { | 215 content::CacheStorageContext* GetCacheStorageContext() override { |
| 216 return nullptr; | 216 return nullptr; |
| 217 } | 217 } |
| 218 content::GeofencingManager* GetGeofencingManager() override { | |
| 219 return nullptr; | |
| 220 } | |
| 221 content::PlatformNotificationContext* GetPlatformNotificationContext() | 218 content::PlatformNotificationContext* GetPlatformNotificationContext() |
| 222 override { | 219 override { |
| 223 return nullptr; | 220 return nullptr; |
| 224 } | 221 } |
| 225 content::HostZoomMap* GetHostZoomMap() override { return nullptr; } | 222 content::HostZoomMap* GetHostZoomMap() override { return nullptr; } |
| 226 content::HostZoomLevelContext* GetHostZoomLevelContext() override { | 223 content::HostZoomLevelContext* GetHostZoomLevelContext() override { |
| 227 return nullptr; | 224 return nullptr; |
| 228 } | 225 } |
| 229 content::ZoomLevelDelegate* GetZoomLevelDelegate() override { | 226 content::ZoomLevelDelegate* GetZoomLevelDelegate() override { |
| 230 return nullptr; | 227 return nullptr; |
| (...skipping 2300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2531 BrowsingDataRemover::ClearSettingsForOneTypeWithPredicate( | 2528 BrowsingDataRemover::ClearSettingsForOneTypeWithPredicate( |
| 2532 host_content_settings_map, CONTENT_SETTINGS_TYPE_SITE_ENGAGEMENT, | 2529 host_content_settings_map, CONTENT_SETTINGS_TYPE_SITE_ENGAGEMENT, |
| 2533 base::Bind(&MatchPrimaryPattern, http_pattern)); | 2530 base::Bind(&MatchPrimaryPattern, http_pattern)); |
| 2534 // Verify we only have one, and it's url1. | 2531 // Verify we only have one, and it's url1. |
| 2535 host_content_settings_map->GetSettingsForOneType( | 2532 host_content_settings_map->GetSettingsForOneType( |
| 2536 CONTENT_SETTINGS_TYPE_SITE_ENGAGEMENT, std::string(), &host_settings); | 2533 CONTENT_SETTINGS_TYPE_SITE_ENGAGEMENT, std::string(), &host_settings); |
| 2537 EXPECT_EQ(1u, host_settings.size()); | 2534 EXPECT_EQ(1u, host_settings.size()); |
| 2538 EXPECT_EQ(ContentSettingsPattern::FromURLNoWildcard(url1), | 2535 EXPECT_EQ(ContentSettingsPattern::FromURLNoWildcard(url1), |
| 2539 host_settings[0].primary_pattern); | 2536 host_settings[0].primary_pattern); |
| 2540 } | 2537 } |
| OLD | NEW |