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

Unified Diff: content/shell/browser/layout_test/layout_test_content_browser_client.h

Issue 774573003: Start pulling away notification logic from ChromeContentBrowserClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/layout_test/layout_test_content_browser_client.h
diff --git a/content/shell/browser/layout_test/layout_test_content_browser_client.h b/content/shell/browser/layout_test/layout_test_content_browser_client.h
index b7648014b1c1839628c21f0ba8f5111df20d232b..b0f0643756a9a985553afc68fcb69abd96b83d06 100644
--- a/content/shell/browser/layout_test/layout_test_content_browser_client.h
+++ b/content/shell/browser/layout_test/layout_test_content_browser_client.h
@@ -23,7 +23,7 @@ class LayoutTestContentBrowserClient : public ShellContentBrowserClient {
LayoutTestBrowserContext* GetLayoutTestBrowserContext();
- // Will be lazily created when running layout tests.
+ // Implements the PlatformNotificationService interface.
LayoutTestNotificationManager* GetLayoutTestNotificationManager();
// ContentBrowserClient overrides.
@@ -35,16 +35,7 @@ class LayoutTestContentBrowserClient : public ShellContentBrowserClient {
const GURL& requesting_frame,
bool user_gesture,
const base::Callback<void(bool)>& result_callback) override;
- blink::WebNotificationPermission CheckDesktopNotificationPermission(
- const GURL& source_url,
- ResourceContext* context,
- int render_process_id) override;
- void ShowDesktopNotification(
- const ShowDesktopNotificationHostMsgParams& params,
- BrowserContext* browser_context,
- int render_process_id,
- scoped_ptr<DesktopNotificationDelegate> delegate,
- base::Closure* cancel_callback) override;
+ PlatformNotificationService* GetPlatformNotificationService() override;
private:
scoped_ptr<LayoutTestNotificationManager> layout_test_notification_manager_;

Powered by Google App Engine
This is Rietveld 408576698