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

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

Issue 1099943003: Notifications: use LayoutTestPermissionManager to handle permissions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_midiclientmock
Patch Set: 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 17350e20b3d29cc997777ac281bd3e7f15899cfc..60f0964c16bb8b0ebdc01f6af20229bd847edc9d 100644
--- a/content/shell/renderer/test_runner/test_runner.cc
+++ b/content/shell/renderer/test_runner/test_runner.cc
@@ -1327,19 +1327,9 @@ void TestRunnerBindings::SetMIDIAccessorResult(bool result) {
}
void TestRunnerBindings::GrantWebNotificationPermission(gin::Arguments* args) {
- if (runner_) {
- std::string origin;
- bool permission_granted = true;
- args->GetNext(&origin);
- args->GetNext(&permission_granted);
- return runner_->GrantWebNotificationPermission(GURL(origin),
- permission_granted);
- }
}
void TestRunnerBindings::ClearWebNotificationPermissions() {
- if (runner_)
- runner_->ClearWebNotificationPermissions();
}
void TestRunnerBindings::SimulateWebNotificationClick(
@@ -2829,15 +2819,6 @@ void TestRunner::SetMIDIAccessorResult(bool result) {
midi_accessor_result_ = result;
}
-void TestRunner::GrantWebNotificationPermission(const GURL& origin,
- bool permission_granted) {
- delegate_->GrantWebNotificationPermission(origin, permission_granted);
-}
-
-void TestRunner::ClearWebNotificationPermissions() {
- delegate_->ClearWebNotificationPermissions();
-}
-
void TestRunner::SimulateWebNotificationClick(const std::string& title) {
delegate_->SimulateWebNotificationClick(title);
}
« no previous file with comments | « content/shell/renderer/test_runner/test_runner.h ('k') | content/shell/renderer/test_runner/web_test_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698