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

Unified Diff: chrome/service/cloud_print/printer_job_handler.cc

Issue 59903019: Moved SimplifyDocumentTitle from printing/backend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/service/cloud_print/print_system_win.cc ('k') | printing/backend/print_backend.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/printer_job_handler.cc
diff --git a/chrome/service/cloud_print/printer_job_handler.cc b/chrome/service/cloud_print/printer_job_handler.cc
index 1db83015f85d150412918c2842d931128493c8a6..f41e8264bb769637fb0455229f6cb63ba215842b 100644
--- a/chrome/service/cloud_print/printer_job_handler.cc
+++ b/chrome/service/cloud_print/printer_job_handler.cc
@@ -21,7 +21,7 @@
#include "net/base/mime_util.h"
#include "net/http/http_response_headers.h"
#include "net/http/http_status_code.h"
-#include "printing/backend/print_backend.h"
+#include "printing/printing_utils.h"
#include "ui/base/l10n/l10n_util.h"
#include "url/gurl.h"
@@ -767,10 +767,9 @@ void PrinterJobHandler::DoPrint(const JobDetails& job_details,
if (!job_spooler_.get())
return;
string16 document_name =
- printing::PrintBackend::SimplifyDocumentTitle(
- UTF8ToUTF16(job_details.job_title_));
+ printing::SimplifyDocumentTitle(UTF8ToUTF16(job_details.job_title_));
if (document_name.empty()) {
- document_name = printing::PrintBackend::SimplifyDocumentTitle(
+ document_name = printing::SimplifyDocumentTitle(
l10n_util::GetStringUTF16(IDS_DEFAULT_PRINT_DOCUMENT_TITLE));
}
UMA_HISTOGRAM_ENUMERATION("CloudPrint.JobHandlerEvent",
« no previous file with comments | « chrome/service/cloud_print/print_system_win.cc ('k') | printing/backend/print_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698