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

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

Issue 2796653003: Move ScriptState::forWorld/ScriptState::forMainWorld (Part 2) (Closed)
Patch Set: Rebase Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/web/WebPluginContainerImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/tests/WebFrameTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
index d936487d2f1f6807e164e89c71e22cc8f3a1ffd8..578b7a8191573301f85af07965d654390dcbd7ab 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -38,6 +38,7 @@
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "bindings/core/v8/SerializedScriptValueFactory.h"
+#include "bindings/core/v8/V8Binding.h"
#include "bindings/core/v8/V8Node.h"
#include "bindings/core/v8/serialization/V8ScriptValueSerializer.h"
#include "core/clipboard/DataTransfer.h"
@@ -1021,7 +1022,7 @@ TEST_P(ParameterizedWebFrameTest, PostMessageThenDetach) {
toLocalFrame(webViewHelper.webView()->page()->mainFrame());
NonThrowableExceptionState exceptionState;
RefPtr<SerializedScriptValue> message =
- serializeString("message", ScriptState::forMainWorld(frame));
+ serializeString("message", toScriptStateForMainWorld(frame));
MessagePortArray messagePorts;
frame->domWindow()->postMessage(message, messagePorts, "*",
frame->domWindow(), exceptionState);
@@ -8862,7 +8863,7 @@ TEST_F(WebFrameSwapTest, SetTimeoutAfterSwap) {
"SecurityError: Blocked a frame with origin \"http://internal.test\" "
"from accessing a cross-origin frame.",
toCoreString(exception
- ->ToString(ScriptState::forMainWorld(
+ ->ToString(toScriptStateForMainWorld(
webView()->mainFrameImpl()->frame())
->context())
.ToLocalChecked()));
« no previous file with comments | « third_party/WebKit/Source/web/WebPluginContainerImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698