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 "third_party/libjingle/overrides/talk/base/logging.h" | 5 #include "third_party/libjingle/overrides/talk/base/logging.h" |
6 | 6 |
7 #if defined(OS_MACOSX) && !defined(OS_IOS) | 7 #if defined(OS_MACOSX) && !defined(OS_IOS) |
8 #include <CoreServices/CoreServices.h> | 8 #include <CoreServices/CoreServices.h> |
9 #endif // OS_MACOSX | 9 #endif // OS_MACOSX |
10 | 10 |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 base::subtle::NoBarrier_CompareAndSwap(&g_init_logging_delegate_thread_id, 0, | 279 base::subtle::NoBarrier_CompareAndSwap(&g_init_logging_delegate_thread_id, 0, |
280 static_cast<base::subtle::Atomic32>(base::PlatformThread::CurrentId())); | 280 static_cast<base::subtle::Atomic32>(base::PlatformThread::CurrentId())); |
281 DCHECK_EQ(g_init_logging_delegate_thread_id, | 281 DCHECK_EQ(g_init_logging_delegate_thread_id, |
282 base::PlatformThread::CurrentId()); | 282 base::PlatformThread::CurrentId()); |
283 #endif | 283 #endif |
284 CHECK(!g_logging_delegate); | 284 CHECK(!g_logging_delegate); |
285 CHECK(delegate); | 285 CHECK(delegate); |
286 g_logging_delegate = delegate; | 286 g_logging_delegate = delegate; |
287 } | 287 } |
288 | 288 |
| 289 void InitDiagnosticLoggingInEmbedder(const std::string& app_session_id, |
| 290 const std::string& app_url) { |
| 291 if (g_logging_delegate) |
| 292 g_logging_delegate->InitLogging(app_session_id, app_url); |
| 293 } |
| 294 |
289 } // namespace talk_base | 295 } // namespace talk_base |
OLD | NEW |