Chromium Code Reviews| Index: chrome/browser/profiles/profile_attributes_entry.h |
| diff --git a/chrome/browser/profiles/profile_attributes_entry.h b/chrome/browser/profiles/profile_attributes_entry.h |
| index 081c5c55557a49fa77cd061df1cae86cf7c506bf..133cafac20d99aadd56d6a2375c4acd5963b4542 100644 |
| --- a/chrome/browser/profiles/profile_attributes_entry.h |
| +++ b/chrome/browser/profiles/profile_attributes_entry.h |
| @@ -11,17 +11,34 @@ |
| #include "base/files/file_path.h" |
| #include "base/macros.h" |
| +#include "base/memory/scoped_ptr.h" |
| #include "base/strings/string16.h" |
| #include "base/time/time.h" |
| +#include "third_party/icu/source/common/unicode/uversion.h" |
|
tapted
2016/02/04 23:10:35
Can this be moved to the.cc? That might remove the
lwchkg
2016/02/05 00:56:22
I guess it simply means that I did not add a prope
anthonyvd
2016/02/05 15:36:31
I'm fine with having a function in ProfileAttribut
|
| namespace gfx { |
| class Image; |
| } |
| +namespace U_ICU_NAMESPACE { |
|
tapted
2016/02/04 23:10:36
does `icu` work in place of U_ICU_NAMESPACE ? That
lwchkg
2016/02/05 00:56:22
No. The namespace icu is alias to U_ICU_NAMESPACE
|
| +class Collator; |
| +} |
| class ProfileInfoCache; |
| class ProfileAttributesEntry { |
| public: |
| + // Compares two ProfileAttributesEntry using locale-sensitive comparison of |
| + // their names. For ties, the profile path is compared next. |
| + class SortComparator { |
| + public: |
| + SortComparator(); |
| + ~SortComparator(); |
| + bool operator()(const ProfileAttributesEntry* const a, |
| + const ProfileAttributesEntry* const b) const; |
| + private: |
| + scoped_ptr<icu::Collator> collator_; |
| + }; |
|
tapted
2016/02/04 23:10:36
nit: DISALLOW_COPY_AND_ASSIGN(..)
lwchkg
2016/02/05 00:56:22
Thanks. Forgot to add it back.
|
| + |
| ProfileAttributesEntry(); |
| virtual ~ProfileAttributesEntry() {} |
| @@ -39,7 +56,7 @@ class ProfileAttributesEntry { |
| base::string16 GetUserName() const; |
| // Gets the icon used as this profile's avatar. This might not be the icon |
| // displayed in the UI if IsUsingGAIAPicture() is true. |
| - const gfx::Image& GetAvatarIcon(); |
| + const gfx::Image& GetAvatarIcon() const; |
| std::string GetLocalAuthCredentials() const; |
| std::string GetPasswordChangeDetectionToken() const; |
| // Note that a return value of false could mean an error in collection or |