| Index: base/location.h
|
| diff --git a/base/location.h b/base/location.h
|
| index a036844e34708b163ceecc22b19fff9d7dbf0d23..dd78515ce2b003b9ede74e8a59bff7d7451a7548 100644
|
| --- a/base/location.h
|
| +++ b/base/location.h
|
| @@ -32,11 +32,6 @@
|
|
|
| // Copy constructor.
|
| Location(const Location& other);
|
| -
|
| - static Location CreateForCurrentProgramCounter(
|
| - const char* function_name,
|
| - const char* file_name,
|
| - int line_number);
|
|
|
| // Comparator for hash map insertion.
|
| // No need to use |function_name_| since the other two fields uniquely
|
| @@ -104,9 +99,11 @@
|
| // Define a macro to record the current source location.
|
| #define FROM_HERE FROM_HERE_WITH_EXPLICIT_FUNCTION(__func__)
|
|
|
| -#define FROM_HERE_WITH_EXPLICIT_FUNCTION(function_name) \
|
| - ::tracked_objects::Location::CreateForCurrentProgramCounter( \
|
| - function_name, __FILE__, __LINE__) \
|
| +#define FROM_HERE_WITH_EXPLICIT_FUNCTION(function_name) \
|
| + ::tracked_objects::Location(function_name, \
|
| + __FILE__, \
|
| + __LINE__, \
|
| + ::tracked_objects::GetProgramCounter())
|
|
|
| } // namespace tracked_objects
|
|
|
|
|