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

Unified Diff: components/test_runner/test_runner.cc

Issue 1973133002: ✀ Remove postMessage plumbing for swappedout:// ✀ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to use std::move instead of release(). Created 4 years, 7 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 | « components/test_runner/test_runner.h ('k') | components/test_runner/web_frame_test_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/test_runner.cc
diff --git a/components/test_runner/test_runner.cc b/components/test_runner/test_runner.cc
index 3be81d7b19b850578e4e962f3406e8a87321c9fd..1a6aa90e4561740cd7beba026cc70f6f4ad1b3d5 100644
--- a/components/test_runner/test_runner.cc
+++ b/components/test_runner/test_runner.cc
@@ -212,7 +212,6 @@ class TestRunnerBindings : public gin::Wrappable<TestRunnerBindings> {
void SetDomainRelaxationForbiddenForURLScheme(bool forbidden,
const std::string& scheme);
void SetImagesAllowed(bool allowed);
- void SetInterceptPostMessage(bool value);
void SetIsolatedWorldContentSecurityPolicy(int world_id,
const std::string& policy);
void SetIsolatedWorldSecurityOrigin(int world_id,
@@ -274,7 +273,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);
@@ -441,9 +439,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)
@@ -1473,19 +1468,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();
@@ -1899,10 +1881,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();
}
« no previous file with comments | « components/test_runner/test_runner.h ('k') | components/test_runner/web_frame_test_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698