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

Unified Diff: content/shell/renderer/test_runner/test_runner.cc

Issue 1100673004: Remove references to WebMidiClientMock from content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 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: content/shell/renderer/test_runner/test_runner.cc
diff --git a/content/shell/renderer/test_runner/test_runner.cc b/content/shell/renderer/test_runner/test_runner.cc
index ba78c8bae3ba425df22b1623d34787239d156d7a..0bf715a23c5294e8bdade7268bddc9c58e328119 100644
--- a/content/shell/renderer/test_runner/test_runner.cc
+++ b/content/shell/renderer/test_runner/test_runner.cc
@@ -41,7 +41,6 @@
#include "third_party/WebKit/public/web/WebInputElement.h"
#include "third_party/WebKit/public/web/WebKit.h"
#include "third_party/WebKit/public/web/WebLocalFrame.h"
-#include "third_party/WebKit/public/web/WebMIDIClientMock.h"
#include "third_party/WebKit/public/web/WebPageOverlay.h"
#include "third_party/WebKit/public/web/WebScriptSource.h"
#include "third_party/WebKit/public/web/WebSecurityPolicy.h"
@@ -1331,8 +1330,6 @@ void TestRunnerBindings::SetMIDIAccessorResult(bool result) {
}
void TestRunnerBindings::SetMIDISysexPermission(bool value) {
- if (runner_)
- runner_->SetMIDISysexPermission(value);
}
void TestRunnerBindings::GrantWebNotificationPermission(gin::Arguments* args) {
@@ -2838,11 +2835,6 @@ void TestRunner::SetMIDIAccessorResult(bool result) {
midi_accessor_result_ = result;
}
-void TestRunner::SetMIDISysexPermission(bool value) {
- for (auto* window : test_interfaces_->GetWindowList())
- window->GetMIDIClientMock()->setSysexPermission(value);
-}
-
void TestRunner::GrantWebNotificationPermission(const GURL& origin,
bool permission_granted) {
delegate_->GrantWebNotificationPermission(origin, permission_granted);
« no previous file with comments | « content/shell/renderer/test_runner/test_runner.h ('k') | content/shell/renderer/test_runner/web_frame_test_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698