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

Unified Diff: components/autofill/core/common/autofill_l10n_util.h

Issue 1541843002: Autofill's CountryCode should use scoped_ptr for owned pointers (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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/core/common/autofill_l10n_util.h
diff --git a/components/autofill/core/common/autofill_l10n_util.h b/components/autofill/core/common/autofill_l10n_util.h
index 9cc2ec958c03623e75d1affe7151dcc07d05fcbf..626bd4fbe4ce82a730bbf010174a3e5e64826baa 100644
--- a/components/autofill/core/common/autofill_l10n_util.h
+++ b/components/autofill/core/common/autofill_l10n_util.h
@@ -12,7 +12,7 @@ namespace l10n {
// Obtains the ICU Collator for this locale. If unsuccessful, attempts to return
// the ICU collator for the English locale. If unsuccessful, returns null.
-icu::Collator* GetCollatorForLocale(const icu::Locale& locale);
+scoped_ptr<icu::Collator> GetCollatorForLocale(const icu::Locale& locale);
// Assists with locale-aware case insensitive string comparisons.
class CaseInsensitiveCompare {
« no previous file with comments | « components/autofill/core/browser/autofill_country.cc ('k') | components/autofill/core/common/autofill_l10n_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698