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

Unified Diff: chrome/browser/background/background_application_list_model.cc

Issue 17948002: Update Linux to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 months 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: chrome/browser/background/background_application_list_model.cc
diff --git a/chrome/browser/background/background_application_list_model.cc b/chrome/browser/background/background_application_list_model.cc
index f16a3a649aea2ea7105ac0267f63f3788835b06a..c5d253859af491831135215dc748a3ddb1c1f180 100644
--- a/chrome/browser/background/background_application_list_model.cc
+++ b/chrome/browser/background/background_application_list_model.cc
@@ -43,7 +43,8 @@ using extensions::UpdatedExtensionPermissionsInfo;
class ExtensionNameComparator {
public:
explicit ExtensionNameComparator(icu::Collator* collator);
- bool operator()(const Extension* x, const Extension* y);
+ bool operator()(const scoped_refptr<const Extension>& x,
+ const scoped_refptr<const Extension>& y);
private:
icu::Collator* collator_;
@@ -53,11 +54,11 @@ ExtensionNameComparator::ExtensionNameComparator(icu::Collator* collator)
: collator_(collator) {
}
-bool ExtensionNameComparator::operator()(const Extension* x,
- const Extension* y) {
+bool ExtensionNameComparator::operator()(
+ const scoped_refptr<const Extension>& x,
+ const scoped_refptr<const Extension>& y) {
return l10n_util::StringComparator<string16>(collator_)(
- UTF8ToUTF16(x->name()),
- UTF8ToUTF16(y->name()));
+ UTF8ToUTF16(x->name()), UTF8ToUTF16(y->name()));
}
// Background application representation, private to the
« no previous file with comments | « chrome/browser/autocomplete/history_url_provider_unittest.cc ('k') | chrome/browser/drive/drive_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698