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

Unified Diff: third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp

Issue 2566823002: Remove deprecated ExceptionState constructors. (Closed)
Patch Set: Created 4 years 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/core/inspector/MainThreadDebugger.cpp
diff --git a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
index 0884d44b0f42468bb82339d4ad4f6356fa0da3d2..3647697c2c67bcb36ce1dcb0facee68815be2d60 100644
--- a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
+++ b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
@@ -369,9 +369,9 @@ void MainThreadDebugger::querySelectorCallback(
Node* node = secondArgumentAsNode(info);
if (!node || !node->isContainerNode())
return;
- ExceptionState exceptionState(ExceptionState::ExecutionContext, "$",
- "CommandLineAPI", info.Holder(),
- info.GetIsolate());
+ ExceptionState exceptionState(info.GetIsolate(),
+ ExceptionState::ExecutionContext,
+ "CommandLineAPI", "$");
Element* element = toContainerNode(node)->querySelector(
AtomicString(selector), exceptionState);
if (exceptionState.hadException())
@@ -392,9 +392,9 @@ void MainThreadDebugger::querySelectorAllCallback(
Node* node = secondArgumentAsNode(info);
if (!node || !node->isContainerNode())
return;
- ExceptionState exceptionState(ExceptionState::ExecutionContext, "$$",
- "CommandLineAPI", info.Holder(),
- info.GetIsolate());
+ ExceptionState exceptionState(info.GetIsolate(),
+ ExceptionState::ExecutionContext,
+ "CommandLineAPI", "$$");
// toV8(elementList) doesn't work here, since we need a proper Array instance,
// not NodeList.
StaticElementList* elementList = toContainerNode(node)->querySelectorAll(
@@ -425,9 +425,9 @@ void MainThreadDebugger::xpathSelectorCallback(
if (!node || !node->isContainerNode())
return;
- ExceptionState exceptionState(ExceptionState::ExecutionContext, "$x",
- "CommandLineAPI", info.Holder(),
- info.GetIsolate());
+ ExceptionState exceptionState(info.GetIsolate(),
+ ExceptionState::ExecutionContext,
+ "CommandLineAPI", "$x");
XPathResult* result = XPathEvaluator::create()->evaluate(
selector, node, nullptr, XPathResult::kAnyType, ScriptValue(),
exceptionState);

Powered by Google App Engine
This is Rietveld 408576698