Chromium Code Reviews| Index: chromecast/common/cast_paths.cc |
| diff --git a/chromecast/common/cast_paths.cc b/chromecast/common/cast_paths.cc |
| index ec485c7e57537f92eff02238fafc1c0649c90192..a8821607e67048cdd7ed6708e47097b6746188e5 100644 |
| --- a/chromecast/common/cast_paths.cc |
| +++ b/chromecast/common/cast_paths.cc |
| @@ -7,6 +7,7 @@ |
| #include "base/base_paths.h" |
| #include "base/file_util.h" |
| #include "base/files/file_path.h" |
| +#include "base/logging.h" |
| #include "base/path_service.h" |
| #include "build/build_config.h" |
| @@ -30,7 +31,7 @@ bool PathProvider(int key, base::FilePath* result) { |
| case FILE_CAST_CONFIG: { |
| base::FilePath data_dir; |
| #if defined(OS_ANDROID) |
| - CHECK(PathService::Get(base::DIR_ANDROID_APP_DATA, &data_dir); |
| + CHECK(PathService::Get(base::DIR_ANDROID_APP_DATA, &data_dir)); |
| *result = data_dir.Append("cast_shell.conf"); |
| #else |
| CHECK(PathService::Get(DIR_CAST_HOME, &data_dir)); |
| @@ -49,6 +50,14 @@ bool PathProvider(int key, base::FilePath* result) { |
| #endif // defined(OS_ANDROID) |
| return true; |
| } |
| +#if defined(OS_ANDROID) |
| + case FILE_CAST_ANDROID_LOG: { |
|
byungchul
2014/08/27 18:54:27
alphabetic order?
gunsch
2014/08/28 00:12:08
Done.
|
| + base::FilePath base_dir; |
| + CHECK(PathService::Get(base::DIR_ANDROID_APP_DATA, &base_dir)); |
| + *result = base_dir.AppendASCII("cast_shell.log"); |
| + return true; |
| + } |
| +#endif // defined(OS_ANDROID) |
| } |
| return false; |
| } |