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

Side by Side Diff: courgette/memory_allocator.cc

Issue 12545059: ifdef OS_NAME -> if defined(OS_NAME) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "courgette/memory_allocator.h" 5 #include "courgette/memory_allocator.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/stringprintf.h" 10 #include "base/stringprintf.h"
11 11
12 #ifdef OS_WIN 12 #if defined(OS_WIN)
13 13
14 namespace courgette { 14 namespace courgette {
15 15
16 // TempFile 16 // TempFile
17 17
18 TempFile::TempFile() : file_(base::kInvalidPlatformFileValue) { 18 TempFile::TempFile() : file_(base::kInvalidPlatformFileValue) {
19 } 19 }
20 20
21 TempFile::~TempFile() { 21 TempFile::~TempFile() {
22 Close(); 22 Close();
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 if (mem) { 153 if (mem) {
154 ret = reinterpret_cast<TempMapping**>(mem)[-1]; 154 ret = reinterpret_cast<TempMapping**>(mem)[-1];
155 } 155 }
156 DCHECK(ret); 156 DCHECK(ret);
157 return ret; 157 return ret;
158 } 158 }
159 159
160 } // namespace courgette 160 } // namespace courgette
161 161
162 #endif // OS_WIN 162 #endif // OS_WIN
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698