summaryrefslogtreecommitdiffstats
path: root/base/tracked.h
diff options
context:
space:
mode:
authormaruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-16 01:07:30 +0000
committermaruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-16 01:07:30 +0000
commit83ebe1c3b7527c25da7686d02dbb1761f758ba0d (patch)
treeb31740368cc8453ba0fd9c7963f1a8da3ddab004 /base/tracked.h
parent6fb3ebaf46b393e7f378b59452e69fa8898e544b (diff)
downloadchromium_src-83ebe1c3b7527c25da7686d02dbb1761f758ba0d.zip
chromium_src-83ebe1c3b7527c25da7686d02dbb1761f758ba0d.tar.gz
chromium_src-83ebe1c3b7527c25da7686d02dbb1761f758ba0d.tar.bz2
Fix the bug where (a < b && b < a) is true. This is producing an assert when breakpad is correctly disabled.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@971 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/tracked.h')
-rw-r--r--base/tracked.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/base/tracked.h b/base/tracked.h
index 5ef5c29..597090a 100644
--- a/base/tracked.h
+++ b/base/tracked.h
@@ -40,8 +40,8 @@
// thread, and duration of life (from construction to destruction). All this
// data is accumulated and filtered for review at about:objects.
-#ifndef BASE_TRACKED_H__
-#define BASE_TRACKED_H__
+#ifndef BASE_TRACKED_H_
+#define BASE_TRACKED_H_
#include <string>
@@ -85,7 +85,7 @@ class Location {
if (line_number_ != other.line_number_)
return line_number_ < other.line_number_;
if (file_name_ != other.file_name_)
- return file_name_ != other.file_name_;
+ return file_name_ < other.file_name_;
return function_name_ < other.function_name_;
}
@@ -94,7 +94,7 @@ class Location {
int line_number() const { return line_number_; }
void Write(bool display_filename, bool display_function_name,
- std::string* output) const;
+ std::string* output) const;
// Write function_name_ in HTML with '<' and '>' properly encoded.
void WriteFunctionName(std::string* output) const;
@@ -141,9 +141,9 @@ class Tracked {
// reset before the object begins it active life.
Time tracked_birth_time_;
- DISALLOW_EVIL_CONSTRUCTORS(Tracked);
+ DISALLOW_COPY_AND_ASSIGN(Tracked);
};
} // namespace tracked_objects
-#endif // BASE_TRACKED_H__
+#endif // BASE_TRACKED_H_