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

Side by Side Diff: printing/backend/print_backend.cc

Issue 24989002: Cleanup: Use base namespace in printing/. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « printing/backend/print_backend.h ('k') | printing/backend/win_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "printing/backend/print_backend.h" 5 #include "printing/backend/print_backend.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "third_party/icu/source/common/unicode/uchar.h" 9 #include "third_party/icu/source/common/unicode/uchar.h"
10 #include "ui/gfx/text_elider.h" 10 #include "ui/gfx/text_elider.h"
(...skipping 20 matching lines...) Expand all
31 duplex_default(UNKNOWN_DUPLEX_MODE) {} 31 duplex_default(UNKNOWN_DUPLEX_MODE) {}
32 32
33 PrinterSemanticCapsAndDefaults::~PrinterSemanticCapsAndDefaults() {} 33 PrinterSemanticCapsAndDefaults::~PrinterSemanticCapsAndDefaults() {}
34 34
35 PrinterCapsAndDefaults::PrinterCapsAndDefaults() {} 35 PrinterCapsAndDefaults::PrinterCapsAndDefaults() {}
36 36
37 PrinterCapsAndDefaults::~PrinterCapsAndDefaults() {} 37 PrinterCapsAndDefaults::~PrinterCapsAndDefaults() {}
38 38
39 PrintBackend::~PrintBackend() {} 39 PrintBackend::~PrintBackend() {}
40 40
41 string16 PrintBackend::SimplifyDocumentTitle(const string16& title) { 41 base::string16 PrintBackend::SimplifyDocumentTitle(
42 string16 no_controls(title); 42 const base::string16& title) {
43 base::string16 no_controls(title);
43 no_controls.erase( 44 no_controls.erase(
44 std::remove_if(no_controls.begin(), no_controls.end(), &u_iscntrl), 45 std::remove_if(no_controls.begin(), no_controls.end(), &u_iscntrl),
45 no_controls.end()); 46 no_controls.end());
46 string16 result; 47 base::string16 result;
47 gfx::ElideString(no_controls, kMaxDocumentTitleLength, &result); 48 gfx::ElideString(no_controls, kMaxDocumentTitleLength, &result);
48 return result; 49 return result;
49 } 50 }
50 51
51 } // namespace printing 52 } // namespace printing
OLDNEW
« no previous file with comments | « printing/backend/print_backend.h ('k') | printing/backend/win_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698