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

Unified Diff: printing/printing_utils.h

Issue 1212883003: Include user email into document title before spooling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mon Jul 6 10:13:42 PDT 2015 Created 5 years, 5 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: printing/printing_utils.h
diff --git a/printing/printing_utils.h b/printing/printing_utils.h
index 958a3f52c374c91a5622a7d2030fba69a7e0e3c8..fbe89fa35d8cb5bd90f8f17e6eff773cc242c662 100644
--- a/printing/printing_utils.h
+++ b/printing/printing_utils.h
@@ -10,10 +10,16 @@
namespace printing {
+const size_t kMaxDocumentTitleLength = 80;
+
// Simplify title to resolve issue with some drivers.
PRINTING_EXPORT base::string16 SimplifyDocumentTitle(
const base::string16& title);
+PRINTING_EXPORT base::string16 SimplifyDocumentTitleWithLength(
+ const base::string16& title,
+ size_t desi);
Aleksey Shlyapnikov 2015/07/06 23:06:25 desi -> length
+
} // namespace printing
#endif // PRINTING_PRINTING_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698