Index: chrome/browser/extensions/install_tracker.cc |
diff --git a/chrome/browser/extensions/install_tracker.cc b/chrome/browser/extensions/install_tracker.cc |
index 67e0cbb943fd480580f467b11a90d41131f340b5..16d091411502d01c7032821cfd9027870806e6fb 100644 |
--- a/chrome/browser/extensions/install_tracker.cc |
+++ b/chrome/browser/extensions/install_tracker.cc |
@@ -10,6 +10,7 @@ |
#include "content/public/browser/notification_service.h" |
#include "extensions/browser/extension_prefs.h" |
#include "extensions/browser/extension_registry.h" |
+#include "extensions/browser/extension_system.h" |
#include "extensions/browser/pref_names.h" |
namespace extensions { |
@@ -24,7 +25,7 @@ InstallTracker::InstallTracker(content::BrowserContext* browser_context, |
// Prefs may be null in tests. |
if (prefs) { |
- AppSorting* sorting = prefs->app_sorting(); |
+ AppSorting* sorting = ExtensionSystem::Get(browser_context)->app_sorting(); |
registrar_.Add(this, |
chrome::NOTIFICATION_APP_LAUNCHER_REORDERED, |
content::Source<AppSorting>(sorting)); |