[M73 Dev][Tizen] Fix compilation errors for TV profile
[platform/framework/web/chromium-efl.git] / base / type_id.cc
1 // Copyright 2018 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/type_id.h"
6
7 #include "base/strings/string_number_conversions.h"
8
9 namespace base {
10 namespace experimental {
11
12 std::string TypeId::ToString() const {
13 #if DCHECK_IS_ON()
14   return function_name_;
15 #else
16   return NumberToString(reinterpret_cast<uintptr_t>(type_id_));
17 #endif
18 }
19
20 std::ostream& operator<<(std::ostream& out, const TypeId& type_id) {
21   return out << type_id.ToString();
22 }
23
24 }  // namespace experimental
25 }  // namespace base