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 "content/test/test_content_browser_client.h" | 5 #include "content/test/test_content_browser_client.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 RenderViewHostDelegateView** render_view_host_delegate_view) { | 24 RenderViewHostDelegateView** render_view_host_delegate_view) { |
25 #if defined(OS_IOS) | 25 #if defined(OS_IOS) |
26 return NULL; | 26 return NULL; |
27 #else | 27 #else |
28 TestWebContentsView* rv = new TestWebContentsView; | 28 TestWebContentsView* rv = new TestWebContentsView; |
29 *render_view_host_delegate_view = rv; | 29 *render_view_host_delegate_view = rv; |
30 return rv; | 30 return rv; |
31 #endif | 31 #endif |
32 } | 32 } |
33 | 33 |
34 FilePath TestContentBrowserClient::GetDefaultDownloadDirectory() { | 34 base::FilePath TestContentBrowserClient::GetDefaultDownloadDirectory() { |
35 if (!download_dir_.IsValid()) { | 35 if (!download_dir_.IsValid()) { |
36 bool result = download_dir_.CreateUniqueTempDir(); | 36 bool result = download_dir_.CreateUniqueTempDir(); |
37 CHECK(result); | 37 CHECK(result); |
38 } | 38 } |
39 return download_dir_.path(); | 39 return download_dir_.path(); |
40 } | 40 } |
41 | 41 |
42 } // namespace content | 42 } // namespace content |
OLD | NEW |