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

Unified Diff: chrome/browser/extensions/extension_prefs.h

Issue 17038002: Separate the NTP app ordering from the app list app ordering (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rework + fix tests Created 7 years, 4 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/extensions/extension_prefs.h
diff --git a/chrome/browser/extensions/extension_prefs.h b/chrome/browser/extensions/extension_prefs.h
index 3d0e39340de7fc58364d96c1302e5d0b91d6edbe..e6e2e1bda543098b470fa4a60a15caf612be841c 100644
--- a/chrome/browser/extensions/extension_prefs.h
+++ b/chrome/browser/extensions/extension_prefs.h
@@ -16,6 +16,7 @@
#include "chrome/browser/extensions/blacklist.h"
#include "chrome/browser/extensions/extension_scoped_prefs.h"
#include "chrome/browser/prefs/scoped_user_pref_update.h"
+#include "chrome/browser/ui/app_list/app_list_extension_sorting.h"
#include "chrome/common/extensions/extension.h"
#include "components/browser_context_keyed_service/browser_context_keyed_service.h"
#include "extensions/common/url_pattern_set.h"
@@ -488,6 +489,11 @@ class ExtensionPrefs : public ExtensionScopedPrefs,
return extension_sorting_.get();
}
+ // The ordering of apps in the app list.
+ AppListExtensionSorting* app_list_extension_sorting() const {
+ return app_list_extension_sorting_.get();
+ }
+
// Describes the URLs that are able to install extensions. See
// prefs::kExtensionAllowedInstallSites for more information.
URLPatternSet GetAllowedInstallSites();
@@ -621,6 +627,8 @@ class ExtensionPrefs : public ExtensionScopedPrefs,
// properties.
scoped_ptr<ExtensionSorting> extension_sorting_;
+ scoped_ptr<AppListExtensionSorting> app_list_extension_sorting_;
+
scoped_refptr<ContentSettingsStore> content_settings_store_;
scoped_ptr<TimeProvider> time_provider_;

Powered by Google App Engine
This is Rietveld 408576698