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

Unified Diff: content/shell/browser/shell_message_filter.cc

Issue 639293005: Content Shell: Introduce LayoutTestContentBrowserClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 6 years, 2 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/browser/shell_message_filter.cc
diff --git a/content/shell/browser/shell_message_filter.cc b/content/shell/browser/shell_message_filter.cc
index 72eeb16559ce35ba87c2b68b074ffb68dc1e610d..6d5d28b20fd0aa9cc1f17c52ed52da935349be3d 100644
--- a/content/shell/browser/shell_message_filter.cc
+++ b/content/shell/browser/shell_message_filter.cc
@@ -7,10 +7,11 @@
#include "base/files/file_util.h"
#include "base/threading/thread_restrictions.h"
#include "content/public/browser/child_process_security_policy.h"
+#include "content/shell/browser/layout_test/layout_test_content_browser_client.h"
+#include "content/shell/browser/layout_test/layout_test_notification_manager.h"
#include "content/shell/browser/shell_browser_context.h"
#include "content/shell/browser/shell_content_browser_client.h"
#include "content/shell/browser/shell_network_delegate.h"
-#include "content/shell/browser/shell_notification_manager.h"
#include "content/shell/common/shell_messages.h"
#include "net/base/net_errors.h"
#include "net/cookies/cookie_monster.h"
@@ -101,8 +102,8 @@ void ShellMessageFilter::OnSetDatabaseQuota(int quota) {
void ShellMessageFilter::OnCheckWebNotificationPermission(const GURL& origin,
int* result) {
- ShellNotificationManager* manager =
- ShellContentBrowserClient::Get()->GetShellNotificationManager();
+ LayoutTestNotificationManager* manager =
+ LayoutTestContentBrowserClient::Get()->GetLayoutTestNotificationManager();
if (manager)
*result = manager->CheckPermission(origin);
else
@@ -111,8 +112,8 @@ void ShellMessageFilter::OnCheckWebNotificationPermission(const GURL& origin,
void ShellMessageFilter::OnGrantWebNotificationPermission(
const GURL& origin, bool permission_granted) {
- ShellNotificationManager* manager =
- ShellContentBrowserClient::Get()->GetShellNotificationManager();
+ LayoutTestNotificationManager* manager =
+ LayoutTestContentBrowserClient::Get()->GetLayoutTestNotificationManager();
if (manager) {
manager->SetPermission(origin, permission_granted ?
blink::WebNotificationPermissionAllowed :
@@ -121,8 +122,8 @@ void ShellMessageFilter::OnGrantWebNotificationPermission(
}
void ShellMessageFilter::OnClearWebNotificationPermissions() {
- ShellNotificationManager* manager =
- ShellContentBrowserClient::Get()->GetShellNotificationManager();
+ LayoutTestNotificationManager* manager =
+ LayoutTestContentBrowserClient::Get()->GetLayoutTestNotificationManager();
if (manager)
manager->ClearPermissions();
}
« no previous file with comments | « content/shell/browser/shell_content_browser_client.cc ('k') | content/shell/browser/shell_notification_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698