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 #include "content/shell/browser/shell_browser_context.h" | 5 #include "content/shell/browser/shell_browser_context.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/environment.h" | 11 #include "base/environment.h" |
12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
15 #include "base/threading/thread.h" | 15 #include "base/threading/thread.h" |
16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 17 #include "components/network_session_configurator/switches.h" |
17 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/browser/storage_partition.h" | 19 #include "content/public/browser/storage_partition.h" |
19 #include "content/public/common/content_switches.h" | 20 #include "content/public/common/content_switches.h" |
20 #include "content/shell/browser/shell_download_manager_delegate.h" | 21 #include "content/shell/browser/shell_download_manager_delegate.h" |
21 #include "content/shell/browser/shell_permission_manager.h" | 22 #include "content/shell/browser/shell_permission_manager.h" |
22 #include "content/shell/common/shell_switches.h" | 23 #include "content/shell/common/shell_switches.h" |
23 #include "content/test/mock_background_sync_controller.h" | 24 #include "content/test/mock_background_sync_controller.h" |
24 | 25 |
25 #if defined(OS_WIN) | 26 #if defined(OS_WIN) |
26 #include "base/base_paths_win.h" | 27 #include "base/base_paths_win.h" |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 return permission_manager_.get(); | 195 return permission_manager_.get(); |
195 } | 196 } |
196 | 197 |
197 BackgroundSyncController* ShellBrowserContext::GetBackgroundSyncController() { | 198 BackgroundSyncController* ShellBrowserContext::GetBackgroundSyncController() { |
198 if (!background_sync_controller_) | 199 if (!background_sync_controller_) |
199 background_sync_controller_.reset(new MockBackgroundSyncController()); | 200 background_sync_controller_.reset(new MockBackgroundSyncController()); |
200 return background_sync_controller_.get(); | 201 return background_sync_controller_.get(); |
201 } | 202 } |
202 | 203 |
203 } // namespace content | 204 } // namespace content |
OLD | NEW |