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

Side by Side Diff: third_party/WebKit/Source/web/WebKit.cpp

Issue 1839643009: RELEASE_ASSERT -> CHECK and ASSERT -> DCHECK in web. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Return DCHECK_IS_ON checks. Created 4 years, 8 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 void initialize(Platform* platform) 81 void initialize(Platform* platform)
82 { 82 {
83 Platform::initialize(platform); 83 Platform::initialize(platform);
84 84
85 modulesInitializer().initialize(); 85 modulesInitializer().initialize();
86 86
87 V8Initializer::initializeMainThread(); 87 V8Initializer::initializeMainThread();
88 88
89 // currentThread is null if we are running on a thread without a message loo p. 89 // currentThread is null if we are running on a thread without a message loo p.
90 if (WebThread* currentThread = platform->currentThread()) { 90 if (WebThread* currentThread = platform->currentThread()) {
91 ASSERT(!s_endOfTaskRunner); 91 DCHECK(!s_endOfTaskRunner);
92 s_endOfTaskRunner = new EndOfTaskRunner; 92 s_endOfTaskRunner = new EndOfTaskRunner;
93 currentThread->addTaskObserver(s_endOfTaskRunner); 93 currentThread->addTaskObserver(s_endOfTaskRunner);
94 } 94 }
95 } 95 }
96 96
97 void shutdown() 97 void shutdown()
98 { 98 {
99 ThreadState::current()->cleanupMainThread(); 99 ThreadState::current()->cleanupMainThread();
100 100
101 // currentThread() is null if we are running on a thread without a message l oop. 101 // currentThread() is null if we are running on a thread without a message l oop.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 { 161 {
162 #if !LOG_DISABLED 162 #if !LOG_DISABLED
163 WTFLogChannel* channel = getChannelFromName(name); 163 WTFLogChannel* channel = getChannelFromName(name);
164 if (channel) 164 if (channel)
165 channel->state = WTFLogChannelOn; 165 channel->state = WTFLogChannelOn;
166 #endif // !LOG_DISABLED 166 #endif // !LOG_DISABLED
167 } 167 }
168 168
169 void resetPluginCache(bool reloadPages) 169 void resetPluginCache(bool reloadPages)
170 { 170 {
171 ASSERT(!reloadPages); 171 DCHECK(!reloadPages);
172 Page::refreshPlugins(); 172 Page::refreshPlugins();
173 } 173 }
174 174
175 void decommitFreeableMemory() 175 void decommitFreeableMemory()
176 { 176 {
177 WTF::Partitions::decommitFreeableMemory(); 177 WTF::Partitions::decommitFreeableMemory();
178 } 178 }
179 179
180 } // namespace blink 180 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebInputEventConversion.cpp ('k') | third_party/WebKit/Source/web/WebLeakDetector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698