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

Side by Side Diff: third_party/WebKit/Source/platform/Timer.h

Issue 2513893002: Make ifdefs consistent in WebKit/Source/core/ (Closed)
Patch Set: Added #if DCHECK_IS_ON where needed. Created 4 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 UnthrottledThreadTimer(TimerFiredClass* timerFiredClass, 190 UnthrottledThreadTimer(TimerFiredClass* timerFiredClass,
191 TimerFiredFunction timerFiredFunction) 191 TimerFiredFunction timerFiredFunction)
192 : TaskRunnerTimer<TimerFiredClass>(TimerBase::getUnthrottledTaskRunner(), 192 : TaskRunnerTimer<TimerFiredClass>(TimerBase::getUnthrottledTaskRunner(),
193 timerFiredClass, 193 timerFiredClass,
194 timerFiredFunction) {} 194 timerFiredFunction) {}
195 }; 195 };
196 196
197 NO_SANITIZE_ADDRESS 197 NO_SANITIZE_ADDRESS
198 inline bool TimerBase::isActive() const { 198 inline bool TimerBase::isActive() const {
199 ASSERT(m_thread == currentThread()); 199 #if DCHECK_IS_ON()
200 DCHECK(m_thread == currentThread());
Yuta Kitamura 2016/11/21 09:26:12 Use DCHECK_EQ.
Alexander Alekseev 2016/11/23 09:20:30 Done.
201 #endif
200 return m_weakPtrFactory.hasWeakPtrs(); 202 return m_weakPtrFactory.hasWeakPtrs();
201 } 203 }
202 204
203 } // namespace blink 205 } // namespace blink
204 206
205 #endif // Timer_h 207 #endif // Timer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698