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

Unified Diff: chrome/browser/printing/win_printing_context.cc

Issue 149148: Remove unused notification in print code to simplify before refactoring.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/browser/printing/printed_document.cc ('k') | chrome/common/notification_type.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/win_printing_context.cc
===================================================================
--- chrome/browser/printing/win_printing_context.cc (revision 19830)
+++ chrome/browser/printing/win_printing_context.cc (working copy)
@@ -11,7 +11,7 @@
#include "base/time.h"
#include "base/time_format.h"
#include "chrome/browser/browser_process.h"
-#include "chrome/browser/printing/print_job_manager.h"
+#include "chrome/browser/printing/printed_document.h"
#include "skia/ext/platform_device_win.h"
using base::Time;
@@ -272,14 +272,7 @@
di.lpszDocName = document_name.c_str();
// Is there a debug dump directory specified? If so, force to print to a file.
- std::wstring debug_dump_path;
- if (!g_browser_process || !g_browser_process->print_job_manager()) {
- // Happens only inside a unit test.
- debug_dump_path = L".";
- } else {
- debug_dump_path = g_browser_process->print_job_manager()->debug_dump_path();
- }
-
+ std::wstring debug_dump_path = PrintedDocument::debug_dump_path();
if (!debug_dump_path.empty()) {
// Create a filename.
std::wstring filename;
« no previous file with comments | « chrome/browser/printing/printed_document.cc ('k') | chrome/common/notification_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698