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

Side by Side Diff: Source/core/Init.cpp

Issue 324813002: Convert raw pointer to PassOwnPtr for EventFactoryBase (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix debug build. Created 6 years, 6 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
« no previous file with comments | « no previous file | Source/core/dom/Document.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 EventTargetNames::init(); 67 EventTargetNames::init();
68 } 68 }
69 69
70 void CoreInitializer::registerEventFactory() 70 void CoreInitializer::registerEventFactory()
71 { 71 {
72 static bool isRegistered = false; 72 static bool isRegistered = false;
73 if (isRegistered) 73 if (isRegistered)
74 return; 74 return;
75 isRegistered = true; 75 isRegistered = true;
76 76
77 Document::registerEventFactory(new EventFactory()); 77 Document::registerEventFactory(EventFactory::create());
78 } 78 }
79 79
80 void CoreInitializer::init() 80 void CoreInitializer::init()
81 { 81 {
82 if (m_isInited) 82 if (m_isInited)
83 return; 83 return;
84 m_isInited = true; 84 m_isInited = true;
85 85
86 // It would make logical sense to do this and WTF::StringStatics::init() in 86 // It would make logical sense to do this and WTF::StringStatics::init() in
87 // WTF::initialize() but there are ordering dependencies. 87 // WTF::initialize() but there are ordering dependencies.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 void shutdown() 123 void shutdown()
124 { 124 {
125 // Make sure we stop the HTMLParserThread before Platform::current() is clea red. 125 // Make sure we stop the HTMLParserThread before Platform::current() is clea red.
126 HTMLParserThread::shutdown(); 126 HTMLParserThread::shutdown();
127 127
128 Partitions::shutdown(); 128 Partitions::shutdown();
129 } 129 }
130 130
131 } // namespace WebCore 131 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698