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

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

Issue 2811793005: Rename LocalFrame::Script() to GetScriptController() (Closed)
Patch Set: 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
Index: third_party/WebKit/Source/web/InspectorOverlay.cpp
diff --git a/third_party/WebKit/Source/web/InspectorOverlay.cpp b/third_party/WebKit/Source/web/InspectorOverlay.cpp
index dfa2d0c8023ff808829a56a2fe63a87b88d9fa51..5da6fcfaf24c600174ad1892e22de870edc95289 100644
--- a/third_party/WebKit/Source/web/InspectorOverlay.cpp
+++ b/third_party/WebKit/Source/web/InspectorOverlay.cpp
@@ -624,7 +624,7 @@ void InspectorOverlay::EvaluateInOverlay(const String& method,
command->pushValue(protocol::StringValue::create(method));
command->pushValue(protocol::StringValue::create(argument));
ToLocalFrame(OverlayPage()->MainFrame())
- ->Script()
+ ->GetScriptController()
.ExecuteScriptInMainWorld(
"dispatch(" + command->serialize() + ")",
ScriptController::kExecuteScriptWhenScriptsDisabled);
@@ -638,7 +638,7 @@ void InspectorOverlay::EvaluateInOverlay(
command->pushValue(protocol::StringValue::create(method));
command->pushValue(std::move(argument));
ToLocalFrame(OverlayPage()->MainFrame())
- ->Script()
+ ->GetScriptController()
.ExecuteScriptInMainWorld(
"dispatch(" + command->serialize() + ")",
ScriptController::kExecuteScriptWhenScriptsDisabled);
@@ -649,7 +649,7 @@ String InspectorOverlay::EvaluateInOverlayForTest(const String& script) {
v8::HandleScope handle_scope(ToIsolate(OverlayMainFrame()));
v8::Local<v8::Value> string =
ToLocalFrame(OverlayPage()->MainFrame())
- ->Script()
+ ->GetScriptController()
.ExecuteScriptInMainWorldAndReturnValue(
ScriptSourceCode(script),
ScriptController::kExecuteScriptWhenScriptsDisabled);

Powered by Google App Engine
This is Rietveld 408576698