| Index: chrome/tools/mac_helpers/infoplist_strings_util.mm
|
| diff --git a/chrome/tools/mac_helpers/infoplist_strings_util.mm b/chrome/tools/mac_helpers/infoplist_strings_util.mm
|
| index 932005f35bf59779c9c2d4c74eec187801005506..1587210fb86f8a1ac26189ff8bbdae7c0ac7e529 100644
|
| --- a/chrome/tools/mac_helpers/infoplist_strings_util.mm
|
| +++ b/chrome/tools/mac_helpers/infoplist_strings_util.mm
|
| @@ -15,8 +15,8 @@
|
|
|
| #include "base/files/file_path.h"
|
| #include "base/files/file_util.h"
|
| +#include "base/i18n/message_formatter.h"
|
| #include "base/mac/scoped_nsautorelease_pool.h"
|
| -#include "base/strings/string_number_conversions.h"
|
| #include "base/strings/string_piece.h"
|
| #include "base/strings/string_util.h"
|
| #include "base/strings/string_util.h"
|
| @@ -257,13 +257,9 @@ int main(int argc, char* const argv[]) {
|
| IDS_AUTOFILL_ADDRESS_BOOK_PROMPT_DESCRIPTION,
|
| "IDS_AUTOFILL_ADDRESS_BOOK_PROMPT_DESCRIPTION");
|
|
|
| - base::Time::Exploded exploded_time;
|
| - base::Time::Now().LocalExplode(&exploded_time);
|
| - std::vector<base::string16> replacements;
|
| - replacements.push_back(base::IntToString16(exploded_time.year));
|
| NSString* copyright = base::SysUTF16ToNSString(
|
| - base::ReplaceStringPlaceholders(
|
| - base::SysNSStringToUTF16(copyright_format), replacements, NULL));
|
| + base::i18n::MessageFormatter::FormatWithNumberedArgs(
|
| + base::SysNSStringToUTF16(copyright_format), base::Time::Now()));
|
|
|
| // For now, assume this is ok for all languages. If we need to, this could
|
| // be moved into generated_resources.grd and fetched.
|
|
|