diff options
author | tkent@google.com <tkent@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-21 08:42:26 +0000 |
---|---|---|
committer | tkent@google.com <tkent@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-21 08:42:26 +0000 |
commit | a9da6bc82b7575641174d4f57f89f67a9f260c7a (patch) | |
tree | 256832116d1ca3bb3350b85fc607747245f6a3ef /webkit | |
parent | 565ad82bf4aeb5c38fbfaf7098fe0409c281665c (diff) | |
download | chromium_src-a9da6bc82b7575641174d4f57f89f67a9f260c7a.zip chromium_src-a9da6bc82b7575641174d4f57f89f67a9f260c7a.tar.gz chromium_src-a9da6bc82b7575641174d4f57f89f67a9f260c7a.tar.bz2 |
Prepare to move an InitWebCoreSystemInterface() call in
third_party/WebKit/WebKitTools/DumpRenderTree/chromium/DumpRenderTree.cpp
to webkit_support.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/1688003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45167 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/support/platform_support_mac.mm | 3 | ||||
-rw-r--r-- | webkit/support/setup_third_party.gyp | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/webkit/support/platform_support_mac.mm b/webkit/support/platform_support_mac.mm index 007413c..c404342 100644 --- a/webkit/support/platform_support_mac.mm +++ b/webkit/support/platform_support_mac.mm @@ -8,14 +8,17 @@ #import <Foundation/Foundation.h> #include "base/logging.h" +#include "third_party/WebKit/WebKit/mac/WebCoreSupport/WebSystemInterface.h" namespace webkit_support { static NSAutoreleasePool* autorelease_pool; void BeforeInitialize() { + // Need to initialize NSAutoreleasePool before InitWebCoreSystemInterface(). autorelease_pool = [[NSAutoreleasePool alloc] init]; DCHECK(autorelease_pool); + InitWebCoreSystemInterface(); } void AfterIniitalize() { diff --git a/webkit/support/setup_third_party.gyp b/webkit/support/setup_third_party.gyp index 986a4ab..c5cce6c 100644 --- a/webkit/support/setup_third_party.gyp +++ b/webkit/support/setup_third_party.gyp @@ -50,6 +50,12 @@ '<!@(<(list_headers_cmd) <(DEPTH)/public/x11/)', ], }, + { + 'destination': '<(DEPTH)/third_party/WebKit/WebKit/mac/WebCoreSupport', + 'files': [ + '<(DEPTH)/../mac/WebCoreSupport/WebSystemInterface.h', + ], + }, ] }, ], |