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

Unified Diff: chrome/browser/ui/app_list/extension_app_item.cc

Issue 1419823011: app_sorting() calls should go via ExtensionSystem intsead of prefs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes as per review comments. 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
Index: chrome/browser/ui/app_list/extension_app_item.cc
diff --git a/chrome/browser/ui/app_list/extension_app_item.cc b/chrome/browser/ui/app_list/extension_app_item.cc
index 471182cfe7032a64d8c114e32afb71f1d5e0d073..6bd1bb408ae1d0add9e8d6a8e53030467c558c1f 100644
--- a/chrome/browser/ui/app_list/extension_app_item.cc
+++ b/chrome/browser/ui/app_list/extension_app_item.cc
@@ -19,6 +19,7 @@
#include "extensions/browser/app_sorting.h"
#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/extension_registry.h"
+#include "extensions/browser/extension_system.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_icon_set.h"
#include "extensions/common/manifest_handlers/icons_handler.h"
@@ -101,7 +102,7 @@ class RoundedCornersImageSource : public gfx::CanvasImageSource {
};
extensions::AppSorting* GetAppSorting(Profile* profile) {
- return extensions::ExtensionPrefs::Get(profile)->app_sorting();
+ return extensions::ExtensionSystem::Get(profile)->app_sorting();
}
gfx::ImageSkia CreateDisabledIcon(const gfx::ImageSkia& icon) {

Powered by Google App Engine
This is Rietveld 408576698