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

Side by Side Diff: base/threading/thread_restrictions.h

Issue 2163023002: Unify usage of logging/assert macros in base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
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 #ifndef BASE_THREADING_THREAD_RESTRICTIONS_H_ 5 #ifndef BASE_THREADING_THREAD_RESTRICTIONS_H_
6 #define BASE_THREADING_THREAD_RESTRICTIONS_H_ 6 #define BASE_THREADING_THREAD_RESTRICTIONS_H_
7 7
8 #include "base/base_export.h" 8 #include "base/base_export.h"
9 #include "base/logging.h"
9 #include "base/macros.h" 10 #include "base/macros.h"
10 11
11 // See comment at top of thread_checker.h 12 // See comment at top of thread_checker.h
12 #if (!defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)) 13 #if DCHECK_IS_ON()
13 #define ENABLE_THREAD_RESTRICTIONS 1 14 #define ENABLE_THREAD_RESTRICTIONS 1
danakj 2016/07/19 20:17:02 dittos?
gab 2016/07/20 02:43:58 This one was used across the codebase, switched to
14 #else 15 #else
15 #define ENABLE_THREAD_RESTRICTIONS 0 16 #define ENABLE_THREAD_RESTRICTIONS 0
16 #endif 17 #endif
17 18
18 class BrowserProcessImpl; 19 class BrowserProcessImpl;
19 class HistogramSynchronizer; 20 class HistogramSynchronizer;
20 class NativeBackendKWallet; 21 class NativeBackendKWallet;
21 class ScopedAllowWaitForLegacyWebViewApi; 22 class ScopedAllowWaitForLegacyWebViewApi;
22 23
23 namespace cc { 24 namespace cc {
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 262
262 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); 263 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait);
263 }; 264 };
264 265
265 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); 266 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions);
266 }; 267 };
267 268
268 } // namespace base 269 } // namespace base
269 270
270 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ 271 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_
OLDNEW
« base/threading/thread_checker_unittest.cc ('K') | « base/threading/thread_checker_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698