| 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/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 } | 31 } |
| 32 | 32 |
| 33 base::FilePath TestContentBrowserClient::GetDefaultDownloadDirectory() { | 33 base::FilePath TestContentBrowserClient::GetDefaultDownloadDirectory() { |
| 34 if (!download_dir_.IsValid()) { | 34 if (!download_dir_.IsValid()) { |
| 35 bool result = download_dir_.CreateUniqueTempDir(); | 35 bool result = download_dir_.CreateUniqueTempDir(); |
| 36 CHECK(result); | 36 CHECK(result); |
| 37 } | 37 } |
| 38 return download_dir_.path(); | 38 return download_dir_.path(); |
| 39 } | 39 } |
| 40 | 40 |
| 41 std::string TestContentBrowserClient::GetMediaDeviceIDSalt( |
| 42 ResourceContext* rc) { |
| 43 CHECK(rc); |
| 44 return "test_salt"; |
| 45 } |
| 46 |
| 41 } // namespace content | 47 } // namespace content |
| OLD | NEW |