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

Unified Diff: content/browser/tab_contents/tab_contents.cc

Issue 7125006: Get rid of Chrome notifications dependency, and instead go through ContentBrowserClient to show U... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix browsertest Created 9 years, 6 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/browser/tab_contents/tab_contents.cc
===================================================================
--- content/browser/tab_contents/tab_contents.cc (revision 88079)
+++ content/browser/tab_contents/tab_contents.cc (working copy)
@@ -15,8 +15,6 @@
#include "base/utf_string_conversions.h"
#include "chrome/browser/debugger/devtools_manager.h"
#include "chrome/browser/load_from_memory_cache_details.h"
-#include "chrome/browser/notifications/desktop_notification_service.h"
-#include "chrome/browser/notifications/desktop_notification_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "content/browser/child_process_security_policy.h"
#include "content/browser/content_browser_client.h"
@@ -1720,15 +1718,6 @@
delegate()->WorkerCrashed(this);
}
-void TabContents::RequestDesktopNotificationPermission(
- const GURL& source_origin, int callback_context) {
- DesktopNotificationService* service =
- DesktopNotificationServiceFactory::GetForProfile(profile());
- service->RequestPermission(
- source_origin, GetRenderProcessHost()->id(),
- render_view_host()->routing_id(), callback_context, this);
-}
-
void TabContents::BeforeUnloadFiredFromRenderManager(
bool proceed,
bool* proceed_to_fire_unload) {
« chrome/browser/profiles/profile_io_data.h ('K') | « content/browser/tab_contents/tab_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698