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

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

Issue 1457393003: [Autofill] Guard against the initialization failure of ICU Collator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: accepted rewrite Created 5 years, 1 month 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
« no previous file with comments | « components/autofill/core/common/BUILD.gn ('k') | components/autofill/core/common/autofill_l10n_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 099eb3afb499ce17a65c986171b9ad4b85b42b1a..644c4e1e062e975a992aed2a869c447440b7a60a 100644
--- a/components/autofill/core/common/autofill_l10n_util.h
+++ b/components/autofill/core/common/autofill_l10n_util.h
@@ -4,6 +4,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
+#include "third_party/icu/source/common/unicode/locid.h"
#include "third_party/icu/source/i18n/unicode/coll.h"
namespace autofill {
@@ -13,6 +14,8 @@ namespace l10n {
class CaseInsensitiveCompare {
public:
CaseInsensitiveCompare();
+ // Used for testing.
+ explicit CaseInsensitiveCompare(const icu::Locale& locale);
~CaseInsensitiveCompare();
bool StringsEqual(const base::string16& lhs, const base::string16& rhs) const;
« no previous file with comments | « components/autofill/core/common/BUILD.gn ('k') | components/autofill/core/common/autofill_l10n_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698