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

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

Issue 700993002: Revert of Implement getPermissionStatus in MockWebPushClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@push_has_permission
Patch Set: Created 6 years, 1 month 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 | « content/shell/renderer/test_runner/mock_web_push_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/mock_web_push_client.cc
diff --git a/content/shell/renderer/test_runner/mock_web_push_client.cc b/content/shell/renderer/test_runner/mock_web_push_client.cc
index 76ff1336dd3d20e7a94a5dc64e509cbbd215ce69..98bd8d20090afc18d642b3d483ffdd4953b0681d 100644
--- a/content/shell/renderer/test_runner/mock_web_push_client.cc
+++ b/content/shell/renderer/test_runner/mock_web_push_client.cc
@@ -7,7 +7,6 @@
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "third_party/WebKit/public/platform/WebPushError.h"
-#include "third_party/WebKit/public/platform/WebPushPermissionStatus.h"
#include "third_party/WebKit/public/platform/WebPushRegistration.h"
#include "third_party/WebKit/public/platform/WebString.h"
@@ -57,20 +56,4 @@
delete callbacks;
}
-void MockWebPushClient::getPermissionStatus(
- blink::WebPushPermissionCallback* callback,
- blink::WebServiceWorkerProvider* provider) {
- blink::WebPushPermissionStatus status;
- if (error_message_.empty())
- status = blink::WebPushPermissionStatusGranted;
- else if (error_message_.compare("deny_permission") == 0)
- status = blink::WebPushPermissionStatusDenied;
- else
- status = blink::WebPushPermissionStatusDefault;
-
- callback->onSuccess(&status);
- delete callback;
-}
-
-
} // namespace content
« no previous file with comments | « content/shell/renderer/test_runner/mock_web_push_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698