| Index: Source/platform/TraceLocation.h
|
| diff --git a/Source/platform/TraceLocation.h b/Source/platform/TraceLocation.h
|
| index 91513a9372b1fd24a6e785fa3fc4cb88a7fe01ab..87dc31e707f1cfde6f794b848c8ecd15bb43f138 100644
|
| --- a/Source/platform/TraceLocation.h
|
| +++ b/Source/platform/TraceLocation.h
|
| @@ -5,6 +5,8 @@
|
| #ifndef TraceLocation_h
|
| #define TraceLocation_h
|
|
|
| +#include "public/platform/WebTraceLocation.h"
|
| +
|
| // This is intentionally similar to base/location.h
|
| // that we could easily replace usage of TraceLocation
|
| // with base::Location after merging into Chromium.
|
| @@ -13,7 +15,7 @@ namespace blink {
|
|
|
| class TraceLocation {
|
| public:
|
| - // Currenetly only store the bits used in Blink, base::Location stores more.
|
| + // Currently only store the bits used in Blink, base::Location stores more.
|
| // These char*s are not copied and must live for the duration of the program.
|
| TraceLocation(const char* functionName, const char* fileName)
|
| : m_functionName(functionName)
|
| @@ -28,6 +30,11 @@ public:
|
| const char* functionName() const { return m_functionName; }
|
| const char* fileName() const { return m_fileName; }
|
|
|
| + WebTraceLocation toWebTraceLocation() const
|
| + {
|
| + return WebTraceLocation(m_functionName, m_fileName);
|
| + }
|
| +
|
| private:
|
| const char* m_functionName;
|
| const char* m_fileName;
|
|
|