From d0767cb54b2b5ee4d9cf00b3ee0fa585826b4036 Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Thu, 8 Oct 2009 17:38:30 +0000 Subject: Separate out some more ICU from base and into base/i18n. This moves string_util_icu. I moved the number formatting function into base/i18n/number_formatting and just removed the other function in string_util_icu which was TrimWhitespaceUTF8. It is only used in a few places and isn't actually helpful (and the fact that it round-trips through UTF-16 is better for the caller to see). This takes out the sorting from the FileEnumerator. The comment says the sorting is not guaranteed. I moved it into file_util_icu as a standalone function for callers of FileEnumerator to call manually if they need sorted results. I modified the directory lister to use this sorting instead, and filed a bug on doing more optimal JS-based sorting. TEST=none BUG=none Review URL: http://codereview.chromium.org/267001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28405 0039d316-1c4b-4281-b951-d872f2087c98 --- printing/printed_document.cc | 3 ++- printing/printing_context_win.cc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'printing') diff --git a/printing/printed_document.cc b/printing/printed_document.cc index 918c99e..0864d4b 100644 --- a/printing/printed_document.cc +++ b/printing/printed_document.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -9,6 +9,7 @@ #include "app/gfx/font.h" #include "app/gfx/text_elider.h" #include "base/file_util.h" +#include "base/i18n/file_util_icu.h" #include "base/message_loop.h" #include "base/singleton.h" #include "base/string_util.h" diff --git a/printing/printing_context_win.cc b/printing/printing_context_win.cc index 8706b05..c924f06 100644 --- a/printing/printing_context_win.cc +++ b/printing/printing_context_win.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -7,6 +7,7 @@ #include #include "base/file_util.h" +#include "base/i18n/file_util_icu.h" #include "base/message_loop.h" #include "base/time.h" #include "base/time_format.h" -- cgit v1.1