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

Unified Diff: third_party/WebKit/Source/core/Init.h

Issue 1761853002: Shut down all threads before the main thread shuts down (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/Init.h
diff --git a/third_party/WebKit/Source/core/Init.h b/third_party/WebKit/Source/core/Init.h
index e527a936d2cbb312b3b130f0d9d7ba0d78f62cf4..fd33dafc75402e8cf1c6a8d02e8cafd5a92922cb 100644
--- a/third_party/WebKit/Source/core/Init.h
+++ b/third_party/WebKit/Source/core/Init.h
@@ -38,23 +38,22 @@ namespace blink {
class CORE_EXPORT CoreInitializer {
USING_FAST_MALLOC(CoreInitializer);
+ WTF_MAKE_NONCOPYABLE(CoreInitializer);
public:
- CoreInitializer() : m_isInited(false) { }
+ CoreInitializer() : m_isInitialized(false) { }
+ virtual ~CoreInitializer() { }
+
// Should be called by clients before trying to create Frames.
virtual void init();
-
- static void terminateThreads();
-
- // FIXME: Why is this function static?
- static void shutdown();
+ virtual void shutdown();
protected:
- bool isInitialized() const { return m_isInited; }
+ bool isInitialized() const { return m_isInitialized; }
private:
void registerEventFactory();
- bool m_isInited;
+ bool m_isInitialized;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698