OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <stdarg.h> | 5 #include <stdarg.h> |
6 #include <string.h> | 6 #include <string.h> |
7 | 7 |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 return new MessagePumpForUIStub(); | 155 return new MessagePumpForUIStub(); |
156 } | 156 } |
157 | 157 |
158 } // namespace | 158 } // namespace |
159 | 159 |
160 void InitAndroidTestStub() { | 160 void InitAndroidTestStub() { |
161 logging::InitLogging(NULL, | 161 logging::InitLogging(NULL, |
162 logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, | 162 logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, |
163 logging::DONT_LOCK_LOG_FILE, | 163 logging::DONT_LOCK_LOG_FILE, |
164 logging::DELETE_OLD_LOG_FILE, | 164 logging::DELETE_OLD_LOG_FILE, |
165 logging::ENABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); | 165 logging::ENABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS, |
| 166 logging::DISABLE_DLOG_FOR_NON_OFFICIAL_RELEASE_BUILDS); |
166 // To view log output with IDs and timestamps use "adb logcat -v threadtime". | 167 // To view log output with IDs and timestamps use "adb logcat -v threadtime". |
167 logging::SetLogItems(false, // Process ID | 168 logging::SetLogItems(false, // Process ID |
168 false, // Thread ID | 169 false, // Thread ID |
169 false, // Timestamp | 170 false, // Timestamp |
170 false); // Tick count | 171 false); // Tick count |
171 | 172 |
172 PathService::RegisterProvider(&PathTestProviderAndroid, base::DIR_MODULE, | 173 PathService::RegisterProvider(&PathTestProviderAndroid, base::DIR_MODULE, |
173 base::DIR_MODULE + 1); | 174 base::DIR_MODULE + 1); |
174 PathService::RegisterProvider(&PathTestProviderAndroid, base::DIR_CACHE, | 175 PathService::RegisterProvider(&PathTestProviderAndroid, base::DIR_CACHE, |
175 base::DIR_CACHE + 1); | 176 base::DIR_CACHE + 1); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 } | 212 } |
212 | 213 |
213 // TODO(michaelbai): The below PathProviderAndroid was added because we | 214 // TODO(michaelbai): The below PathProviderAndroid was added because we |
214 // excluded base_paths_android.cc which requires JNI to compile. Remove them | 215 // excluded base_paths_android.cc which requires JNI to compile. Remove them |
215 // when this file added. | 216 // when this file added. |
216 bool PathProviderAndroid(int key, FilePath* result) { | 217 bool PathProviderAndroid(int key, FilePath* result) { |
217 return false; | 218 return false; |
218 } | 219 } |
219 | 220 |
220 } // namespace base | 221 } // namespace base |
OLD | NEW |