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

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: rename app_list_extension_ordering to app_list_extension_sorting for consistency Created 7 years, 5 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 6a236a732b8a5a98d0e466a5960621d57af77098..fc16e08c6c0850ec53b7437425671a742acf6d6a 100644
--- a/chrome/browser/extensions/extension_prefs.h
+++ b/chrome/browser/extensions/extension_prefs.h
@@ -15,6 +15,7 @@
#include "base/values.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"
@@ -478,6 +479,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();
@@ -617,6 +623,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