Index: components/test_runner/test_runner.cc |
diff --git a/components/test_runner/test_runner.cc b/components/test_runner/test_runner.cc |
index e656511f526725a856e2901f5f15282c02c03dab..f0588d93dcdfac1fb74f228b66c6a493f522750e 100644 |
--- a/components/test_runner/test_runner.cc |
+++ b/components/test_runner/test_runner.cc |
@@ -215,7 +215,6 @@ class TestRunnerBindings : public gin::Wrappable<TestRunnerBindings> { |
void SetGeofencingMockPosition(double latitude, double longitude); |
void SetGeofencingMockProvider(bool service_available); |
void SetImagesAllowed(bool allowed); |
- void SetInterceptPostMessage(bool value); |
void SetIsolatedWorldContentSecurityPolicy(int world_id, |
const std::string& policy); |
void SetIsolatedWorldSecurityOrigin(int world_id, |
@@ -277,7 +276,6 @@ class TestRunnerBindings : public gin::Wrappable<TestRunnerBindings> { |
bool FindString(const std::string& search_text, |
const std::vector<std::string>& options_array); |
bool HasCustomPageSizeStyle(int page_index); |
- bool InterceptPostMessage(); |
bool IsChooserShown(); |
bool IsCommandEnabled(const std::string& command); |
@@ -446,9 +444,6 @@ gin::ObjectTemplateBuilder TestRunnerBindings::GetObjectTemplateBuilder( |
.SetMethod("hasCustomPageSizeStyle", |
&TestRunnerBindings::HasCustomPageSizeStyle) |
.SetMethod("insertStyleSheet", &TestRunnerBindings::InsertStyleSheet) |
- .SetProperty("interceptPostMessage", |
- &TestRunnerBindings::InterceptPostMessage, |
- &TestRunnerBindings::SetInterceptPostMessage) |
.SetMethod("isChooserShown", &TestRunnerBindings::IsChooserShown) |
.SetMethod("isCommandEnabled", &TestRunnerBindings::IsCommandEnabled) |
.SetMethod("keepWebHistory", &TestRunnerBindings::NotImplemented) |
@@ -1498,19 +1493,6 @@ int TestRunnerBindings::WebHistoryItemCount() { |
return false; |
} |
-bool TestRunnerBindings::InterceptPostMessage() { |
- if (runner_) |
- return runner_->shouldInterceptPostMessage(); |
- return false; |
-} |
- |
-void TestRunnerBindings::SetInterceptPostMessage(bool value) { |
- if (runner_) { |
- runner_->layout_test_runtime_flags_.set_intercept_post_message(value); |
- runner_->OnLayoutTestRuntimeFlagsChanged(); |
- } |
-} |
- |
void TestRunnerBindings::ForceNextWebGLContextCreationToFail() { |
if (view_runner_) |
view_runner_->ForceNextWebGLContextCreationToFail(); |
@@ -1925,10 +1907,6 @@ bool TestRunner::policyDelegateShouldNotifyDone() const { |
return layout_test_runtime_flags_.policy_delegate_should_notify_done(); |
} |
-bool TestRunner::shouldInterceptPostMessage() const { |
- return layout_test_runtime_flags_.intercept_post_message(); |
-} |
- |
bool TestRunner::shouldDumpResourcePriorities() const { |
return layout_test_runtime_flags_.dump_resource_priorities(); |
} |