Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Unified Diff: base/location.cc

Issue 1013463003: Update from https://crrev.com/320931 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/location.h ('k') | base/mac/scoped_mach_port.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/location.cc
diff --git a/base/location.cc b/base/location.cc
index 8b32b9785ba25ed1a798182ef541b8eb0c5b4f2c..1333e6ec45354b1a633ae16de6088db47bab147d 100644
--- a/base/location.cc
+++ b/base/location.cc
@@ -31,6 +31,13 @@ Location::Location()
program_counter_(NULL) {
}
+Location::Location(const Location& other)
+ : function_name_(other.function_name_),
+ file_name_(other.file_name_),
+ line_number_(other.line_number_),
+ program_counter_(other.program_counter_) {
+}
+
std::string Location::ToString() const {
return std::string(function_name_) + "@" + file_name_ + ":" +
base::IntToString(line_number_);
« no previous file with comments | « base/location.h ('k') | base/mac/scoped_mach_port.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698