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

Unified Diff: chrome/browser/printing/print_view_manager.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/printing/print_view_manager.cc
===================================================================
--- chrome/browser/printing/print_view_manager.cc (revision 106380)
+++ chrome/browser/printing/print_view_manager.cc (working copy)
@@ -19,7 +19,7 @@
#include "chrome/common/print_messages.h"
#include "content/browser/renderer_host/render_view_host.h"
#include "content/browser/tab_contents/tab_contents.h"
-#include "content/common/notification_service.h"
+#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_source.h"
#include "grit/generated_resources.h"
@@ -236,10 +236,10 @@
void PrintViewManager::OnPrintingFailed(int cookie) {
ReleasePrinterQuery(cookie);
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_PRINT_JOB_RELEASED,
content::Source<TabContents>(tab_contents()),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
}
bool PrintViewManager::OnMessageReceived(const IPC::Message& message) {
@@ -278,10 +278,10 @@
case JobEventDetails::FAILED: {
TerminatePrintJob(true);
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_PRINT_JOB_RELEASED,
content::Source<TabContentsWrapper>(tab_),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
break;
}
case JobEventDetails::USER_INIT_DONE:
@@ -308,10 +308,10 @@
printing_succeeded_ = true;
ReleasePrintJob();
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_PRINT_JOB_RELEASED,
content::Source<TabContentsWrapper>(tab_),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
break;
}
default: {
« no previous file with comments | « chrome/browser/printing/print_preview_tab_controller_unittest.cc ('k') | chrome/browser/profiles/avatar_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698