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

Unified Diff: ui/base/l10n/l10n_util_collator.h

Issue 100303003: Move more uses of string16 to specify base:: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « ui/base/l10n/l10n_util.cc ('k') | ui/base/l10n/time_format.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/l10n/l10n_util_collator.h
diff --git a/ui/base/l10n/l10n_util_collator.h b/ui/base/l10n/l10n_util_collator.h
index b91b804fc32dd31531a7fa4eb198c78dfe93627b..a0bfb92ebbcc355b1b0f6051c4730870c21736fd 100644
--- a/ui/base/l10n/l10n_util_collator.h
+++ b/ui/base/l10n/l10n_util_collator.h
@@ -21,8 +21,8 @@ namespace l10n_util {
// operator (), comparing the string results using a collator.
template <class T, class Method>
class StringMethodComparatorWithCollator
- : public std::binary_function<const string16&,
- const string16&,
+ : public std::binary_function<const base::string16&,
+ const base::string16&,
bool> {
public:
StringMethodComparatorWithCollator(icu::Collator* collator, Method method)
@@ -43,9 +43,10 @@ class StringMethodComparatorWithCollator
// Used by SortStringsUsingMethod. Invokes a method on the objects passed to
// operator (), comparing the string results using <.
template <class T, class Method>
-class StringMethodComparator : public std::binary_function<const string16&,
- const string16&,
- bool> {
+class StringMethodComparator
+ : public std::binary_function<const base::string16&,
+ const base::string16&,
+ bool> {
public:
explicit StringMethodComparator(Method method) : method_(method) { }
@@ -93,10 +94,10 @@ class StringComparator : public std::binary_function<const Element&,
// Returns true if lhs precedes rhs.
bool operator()(const Element& lhs, const Element& rhs) {
- const string16& lhs_string_key = lhs.GetStringKey();
- const string16& rhs_string_key = rhs.GetStringKey();
+ const base::string16& lhs_string_key = lhs.GetStringKey();
+ const base::string16& rhs_string_key = rhs.GetStringKey();
- return StringComparator<string16>(collator_)(lhs_string_key,
+ return StringComparator<base::string16>(collator_)(lhs_string_key,
rhs_string_key);
}
@@ -106,8 +107,8 @@ class StringComparator : public std::binary_function<const Element&,
// Specialization of operator() method for string16 version.
template <> UI_EXPORT
-bool StringComparator<string16>::operator()(const string16& lhs,
- const string16& rhs);
+bool StringComparator<base::string16>::operator()(const base::string16& lhs,
+ const base::string16& rhs);
// In place sorting of |elements| of a vector according to the string key of
// each element in the vector by using collation rules for |locale|.
« no previous file with comments | « ui/base/l10n/l10n_util.cc ('k') | ui/base/l10n/time_format.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698