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

Unified Diff: chrome/browser/tab_contents/render_view_host_delegate_helper.cc

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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: chrome/browser/tab_contents/render_view_host_delegate_helper.cc
===================================================================
--- chrome/browser/tab_contents/render_view_host_delegate_helper.cc (revision 106380)
+++ chrome/browser/tab_contents/render_view_host_delegate_helper.cc (working copy)
@@ -36,7 +36,7 @@
#include "content/browser/tab_contents/tab_contents_delegate.h"
#include "content/browser/tab_contents/tab_contents_view.h"
#include "content/browser/webui/web_ui.h"
-#include "content/common/notification_service.h"
+#include "content/public/browser/notification_service.h"
#include "content/common/view_messages.h"
#include "net/base/network_change_notifier.h"
@@ -60,7 +60,7 @@
RenderViewHostDelegateViewHelper::RenderViewHostDelegateViewHelper() {
registrar_.Add(this, content::NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
}
RenderViewHostDelegateViewHelper::~RenderViewHostDelegateViewHelper() {}
@@ -268,7 +268,7 @@
details.source_frame_id = params.opener_frame_id;
details.target_url = params.target_url;
details.target_tab_contents = new_contents;
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
content::NOTIFICATION_RETARGETING,
content::Source<content::BrowserContext>(
tab_contents->browser_context()),
@@ -277,7 +277,7 @@
if (tab_contents->delegate())
tab_contents->delegate()->TabContentsCreated(new_contents);
} else {
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
content::NOTIFICATION_CREATING_NEW_WINDOW_CANCELLED,
content::Source<TabContents>(tab_contents),
content::Details<const ViewHostMsg_CreateWindow_Params>(&params));
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | chrome/browser/tab_contents/thumbnail_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698