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

Unified Diff: third_party/WebKit/Source/modules/fetch/Request.cpp

Issue 2777943005: [Bindings] Move and remove some private symbols from V8HiddenValue (Closed)
Patch Set: Rebase Created 3 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/modules/fetch/Request.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/Request.cpp b/third_party/WebKit/Source/modules/fetch/Request.cpp
index 666857c4d2cfa63055052f5c2b60276572164c31..a89dda7c1b391c8721199d8b581d2eae81156485 100644
--- a/third_party/WebKit/Source/modules/fetch/Request.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Request.cpp
@@ -5,6 +5,7 @@
#include "modules/fetch/Request.h"
#include "bindings/core/v8/Dictionary.h"
+#include "bindings/core/v8/V8PrivateProperty.h"
#include "core/dom/Document.h"
#include "core/dom/ExecutionContext.h"
#include "core/loader/ThreadableLoader.h"
@@ -728,9 +729,8 @@ void Request::refreshBody(ScriptState* scriptState) {
return;
}
DCHECK(request->IsObject());
- V8HiddenValue::setHiddenValue(
- scriptState, request.As<v8::Object>(),
- V8HiddenValue::internalBodyBuffer(scriptState->isolate()), bodyBuffer);
+ V8PrivateProperty::getInternalBodyBuffer(scriptState->isolate())
+ .set(scriptState->context(), request.As<v8::Object>(), bodyBuffer);
}
DEFINE_TRACE(Request) {

Powered by Google App Engine
This is Rietveld 408576698