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

Unified Diff: third_party/WebKit/Source/web/WebKit.cpp

Issue 1776943002: Register ArrayBufferContents' adjustAmountOfMemory in V8Initializer::initialize (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/web/WebKit.cpp
diff --git a/third_party/WebKit/Source/web/WebKit.cpp b/third_party/WebKit/Source/web/WebKit.cpp
index 3fa474fa4fd4cc62daa165da2db647021f935768..8a1a341c228c3bd38b8a00e8bea791403d9793ff 100644
--- a/third_party/WebKit/Source/web/WebKit.cpp
+++ b/third_party/WebKit/Source/web/WebKit.cpp
@@ -145,11 +145,6 @@ static void callOnMainThreadFunction(WTF::MainThreadFunction function, void* con
Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, threadSafeBind(function, AllowCrossThreadAccess(context)));
}
-static void adjustAmountOfExternalAllocatedMemory(int size)
-{
- v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(size);
-}
-
void initializeWithoutV8(Platform* platform)
{
ASSERT(!s_webKitInitialized);
@@ -159,7 +154,7 @@ void initializeWithoutV8(Platform* platform)
ASSERT(platform);
Platform::initialize(platform);
- WTF::initialize(adjustAmountOfExternalAllocatedMemory);
+ WTF::initialize();
WTF::initializeMainThread(callOnMainThreadFunction);
Heap::init();

Powered by Google App Engine
This is Rietveld 408576698