OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "content/browser/browsing_data/clear_site_data_throttle.h" | 5 #include "content/browser/browsing_data/clear_site_data_throttle.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/scoped_observer.h" | 12 #include "base/scoped_observer.h" |
13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
| 15 #include "components/network_session_configurator/common/network_switches.h" |
15 #include "content/browser/browsing_data/browsing_data_filter_builder_impl.h" | 16 #include "content/browser/browsing_data/browsing_data_filter_builder_impl.h" |
16 #include "content/browser/service_worker/service_worker_context_observer.h" | 17 #include "content/browser/service_worker/service_worker_context_observer.h" |
17 #include "content/browser/service_worker/service_worker_context_wrapper.h" | 18 #include "content/browser/service_worker/service_worker_context_wrapper.h" |
18 #include "content/public/browser/browser_context.h" | 19 #include "content/public/browser/browser_context.h" |
19 #include "content/public/browser/browsing_data_remover.h" | 20 #include "content/public/browser/browsing_data_remover.h" |
20 #include "content/public/browser/content_browser_client.h" | 21 #include "content/public/browser/content_browser_client.h" |
21 #include "content/public/browser/storage_partition.h" | 22 #include "content/public/browser/storage_partition.h" |
22 #include "content/public/browser/web_contents.h" | 23 #include "content/public/browser/web_contents.h" |
23 #include "content/public/common/content_switches.h" | 24 #include "content/public/common/content_switches.h" |
24 #include "content/public/test/browser_test_utils.h" | 25 #include "content/public/test/browser_test_utils.h" |
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
858 // Tests that closing the tab right after executing Clear-Site-Data does | 859 // Tests that closing the tab right after executing Clear-Site-Data does |
859 // not crash. | 860 // not crash. |
860 IN_PROC_BROWSER_TEST_F(ClearSiteDataThrottleBrowserTest, ClosedTab) { | 861 IN_PROC_BROWSER_TEST_F(ClearSiteDataThrottleBrowserTest, ClosedTab) { |
861 GURL url = https_server()->GetURL("example.com", "/"); | 862 GURL url = https_server()->GetURL("example.com", "/"); |
862 AddQuery(&url, "header", kClearCookiesHeader); | 863 AddQuery(&url, "header", kClearCookiesHeader); |
863 shell()->LoadURL(url); | 864 shell()->LoadURL(url); |
864 shell()->Close(); | 865 shell()->Close(); |
865 } | 866 } |
866 | 867 |
867 } // namespace content | 868 } // namespace content |
OLD | NEW |