Index: base/location.cc |
diff --git a/base/location.cc b/base/location.cc |
index 275efa547920d8e47ebbc2f440baf0ece883186c..3422138750f62e9a2b973aed7c31b2b07f7f2dd0 100644 |
--- a/base/location.cc |
+++ b/base/location.cc |
@@ -14,7 +14,6 @@ extern "C" { |
#include "base/location.h" |
#include "base/string_number_conversions.h" |
#include "base/stringprintf.h" |
-#include "base/values.h" |
namespace tracked_objects { |
@@ -72,18 +71,21 @@ void Location::WriteFunctionName(std::string* output) const { |
} |
} |
-base::DictionaryValue* Location::ToValue() const { |
- base::DictionaryValue* dictionary = new base::DictionaryValue; |
- dictionary->Set("file_name", base::Value::CreateStringValue(file_name_)); |
- // Note: This function name is not escaped, and templates have less than |
- // characters, which means this is not suitable for display as HTML unless |
- // properly escaped. |
- dictionary->Set("function_name", |
- base::Value::CreateStringValue(function_name_)); |
- dictionary->Set("line_number", base::Value::CreateIntegerValue(line_number_)); |
- return dictionary; |
+//------------------------------------------------------------------------------ |
+LocationSnapshot::LocationSnapshot() : line_number(-1) { |
} |
+LocationSnapshot::LocationSnapshot( |
+ const tracked_objects::Location& location) |
+ : file_name(location.file_name()), |
+ function_name(location.function_name()), |
+ line_number(location.line_number()) { |
+} |
+ |
+LocationSnapshot::~LocationSnapshot() { |
+} |
+ |
+//------------------------------------------------------------------------------ |
#if defined(COMPILER_MSVC) |
__declspec(noinline) |
#endif |