Chromium Code Reviews| 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..a3e12bf8d9627421c6094ba7f23c1e4917386d75 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( |
| + copyright_format, base::Time::Now())); |
|
jungshik at Google
2016/05/25 09:09:36
This should be |base::SysNSStringToUTF16(copyright
Greg Levin
2016/05/26 15:25:58
Done.
|
| // For now, assume this is ok for all languages. If we need to, this could |
| // be moved into generated_resources.grd and fetched. |