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

Side by Side Diff: printing/printing_utils.cc

Issue 1544623002: Switch to standard integer types in printing/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « printing/printing_utils.h ('k') | printing/printing_utils_unittest.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/printing_utils.h" 5 #include "printing/printing_utils.h"
6 6
7 #include <stddef.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 10
9 #include "base/logging.h" 11 #include "base/logging.h"
10 12
11 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
12 #include "third_party/icu/source/common/unicode/uchar.h" 14 #include "third_party/icu/source/common/unicode/uchar.h"
13 #include "ui/gfx/text_elider.h" 15 #include "ui/gfx/text_elider.h"
14 16
15 namespace printing { 17 namespace printing {
16 18
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 return SimplifyDocumentTitleWithLength(title, kMaxDocumentTitleLength); 55 return SimplifyDocumentTitleWithLength(title, kMaxDocumentTitleLength);
54 } 56 }
55 57
56 base::string16 FormatDocumentTitleWithOwner(const base::string16& owner, 58 base::string16 FormatDocumentTitleWithOwner(const base::string16& owner,
57 const base::string16& title) { 59 const base::string16& title) {
58 return FormatDocumentTitleWithOwnerAndLength(owner, title, 60 return FormatDocumentTitleWithOwnerAndLength(owner, title,
59 kMaxDocumentTitleLength); 61 kMaxDocumentTitleLength);
60 } 62 }
61 63
62 } // namespace printing 64 } // namespace printing
OLDNEW
« no previous file with comments | « printing/printing_utils.h ('k') | printing/printing_utils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698