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

Unified Diff: printing/backend/print_backend.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 | « printing/backend/print_backend.h ('k') | printing/backend/print_backend_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/backend/print_backend.cc
diff --git a/printing/backend/print_backend.cc b/printing/backend/print_backend.cc
index b7eb5a142d62e777fdec325edf766efbb495fafe..29d38fba6458b860792d51e202f39868e1e07650 100644
--- a/printing/backend/print_backend.cc
+++ b/printing/backend/print_backend.cc
@@ -4,13 +4,6 @@
#include "printing/backend/print_backend.h"
-#include <algorithm>
-
-#include "third_party/icu/source/common/unicode/uchar.h"
-#include "ui/gfx/text_elider.h"
-
-const int kMaxDocumentTitleLength = 50;
-
namespace printing {
PrinterBasicInfo::PrinterBasicInfo()
@@ -33,15 +26,4 @@ PrinterCapsAndDefaults::~PrinterCapsAndDefaults() {}
PrintBackend::~PrintBackend() {}
-base::string16 PrintBackend::SimplifyDocumentTitle(
- const base::string16& title) {
- base::string16 no_controls(title);
- no_controls.erase(
- std::remove_if(no_controls.begin(), no_controls.end(), &u_iscntrl),
- no_controls.end());
- base::string16 result;
- gfx::ElideString(no_controls, kMaxDocumentTitleLength, &result);
- return result;
-}
-
} // namespace printing
« no previous file with comments | « printing/backend/print_backend.h ('k') | printing/backend/print_backend_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698