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

Unified Diff: extensions/shell/browser/shell_extension_system.cc

Issue 1254363004: Move ownership of AppSorting from ExtensionPrefs to ExtensionSystem (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 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: extensions/shell/browser/shell_extension_system.cc
diff --git a/extensions/shell/browser/shell_extension_system.cc b/extensions/shell/browser/shell_extension_system.cc
index e5f5a52472b07da6d4efa5b00af78f29678fe126..5f01d563ac85475322be5cf8cdc229a58ca66eaf 100644
--- a/extensions/shell/browser/shell_extension_system.cc
+++ b/extensions/shell/browser/shell_extension_system.cc
@@ -18,6 +18,7 @@
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/info_map.h"
#include "extensions/browser/notification_types.h"
+#include "extensions/browser/null_app_sorting.h"
#include "extensions/browser/quota_service.h"
#include "extensions/browser/runtime_data.h"
#include "extensions/common/constants.h"
@@ -97,6 +98,7 @@ void ShellExtensionSystem::InitForRegularProfile(bool extensions_enabled) {
runtime_data_.reset(
new RuntimeData(ExtensionRegistry::Get(browser_context_)));
quota_service_.reset(new QuotaService);
+ app_sorting_.reset(new NullAppSorting);
}
ExtensionService* ShellExtensionSystem::extension_service() {
@@ -133,6 +135,10 @@ QuotaService* ShellExtensionSystem::quota_service() {
return quota_service_.get();
}
+AppSorting* ShellExtensionSystem::app_sorting() {
+ return app_sorting_.get();
+}
+
void ShellExtensionSystem::RegisterExtensionWithRequestContexts(
const Extension* extension) {
BrowserThread::PostTask(BrowserThread::IO,

Powered by Google App Engine
This is Rietveld 408576698