OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/layout_test/layout_test_browser_context.h" | 5 #include "content/shell/browser/layout_test/layout_test_browser_context.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/path_service.h" | |
12 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
13 #include "content/public/browser/resource_context.h" | 12 #include "content/public/browser/resource_context.h" |
14 #include "content/shell/browser/layout_test/layout_test_download_manager_delegat
e.h" | 13 #include "content/shell/browser/layout_test/layout_test_download_manager_delegat
e.h" |
15 #include "content/shell/browser/layout_test/layout_test_url_request_context_gett
er.h" | 14 #include "content/shell/browser/layout_test/layout_test_url_request_context_gett
er.h" |
16 #include "content/shell/browser/shell_url_request_context_getter.h" | 15 #include "content/shell/browser/shell_url_request_context_getter.h" |
17 | 16 |
18 #if defined(OS_WIN) | 17 #if defined(OS_WIN) |
19 #include "base/base_paths_win.h" | 18 #include "base/base_paths_win.h" |
20 #elif defined(OS_LINUX) | 19 #elif defined(OS_LINUX) |
21 #include "base/nix/xdg_util.h" | 20 #include "base/nix/xdg_util.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 download_manager_delegate_->SetDownloadManager( | 54 download_manager_delegate_->SetDownloadManager( |
56 BrowserContext::GetDownloadManager(this)); | 55 BrowserContext::GetDownloadManager(this)); |
57 download_manager_delegate_->SetDownloadBehaviorForTesting( | 56 download_manager_delegate_->SetDownloadBehaviorForTesting( |
58 GetPath().Append(FILE_PATH_LITERAL("downloads"))); | 57 GetPath().Append(FILE_PATH_LITERAL("downloads"))); |
59 } | 58 } |
60 | 59 |
61 return download_manager_delegate_.get(); | 60 return download_manager_delegate_.get(); |
62 } | 61 } |
63 | 62 |
64 } // namespace content | 63 } // namespace content |
OLD | NEW |