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

Side by Side Diff: base/tracked.cc

Issue 7071015: Fix the VS2005 build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #if defined(COMPILER_MSVC) 7 #if defined(COMPILER_MSVC)
8 #include <intrin.h> 8 // MSDN says to #include <intrin.h>, but that breaks the VS2005 build.
9 extern "C" {
10 void* _ReturnAddress();
11 }
9 #endif 12 #endif
10 13
11 #include "base/tracked.h" 14 #include "base/tracked.h"
12 15
13 #include "base/stringprintf.h" 16 #include "base/stringprintf.h"
14 #include "base/tracked_objects.h" 17 #include "base/tracked_objects.h"
15 18
16 using base::TimeTicks; 19 using base::TimeTicks;
17 20
18 namespace tracked_objects { 21 namespace tracked_objects {
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 tracked_birth_time_ = TimeTicks::Now(); 140 tracked_birth_time_ = TimeTicks::Now();
138 } 141 }
139 142
140 bool Tracked::MissingBirthplace() const { 143 bool Tracked::MissingBirthplace() const {
141 return -1 == tracked_births_->location().line_number(); 144 return -1 == tracked_births_->location().line_number();
142 } 145 }
143 146
144 #endif // NDEBUG 147 #endif // NDEBUG
145 148
146 } // namespace tracked_objects 149 } // namespace tracked_objects
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698