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

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

Issue 1254363004: Move ownership of AppSorting from ExtensionPrefs to ExtensionSystem (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests, cleanup Created 5 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/test_extension_system.h
diff --git a/chrome/browser/extensions/test_extension_system.h b/chrome/browser/extensions/test_extension_system.h
index 3605626e6a958939b6ce7b148c7709ba279c2048..f96740a5bdb66e0bb98fbd0d1953b069e1695531 100644
--- a/chrome/browser/extensions/test_extension_system.h
+++ b/chrome/browser/extensions/test_extension_system.h
@@ -39,13 +39,6 @@ class TestExtensionSystem : public ExtensionSystem {
// KeyedService implementation.
void Shutdown() override;
- // Creates an ExtensionPrefs with the testing profile and returns it.
- // Useful for tests that need to modify prefs before creating the
- // ExtensionService.
- scoped_ptr<ExtensionPrefs> CreateExtensionPrefs(
- const base::CommandLine* command_line,
- const base::FilePath& install_directory);
-
// Creates an ExtensionService initialized with the testing profile and
// returns it, and creates ExtensionPrefs if it hasn't been created yet.
ExtensionService* CreateExtensionService(
@@ -66,6 +59,7 @@ class TestExtensionSystem : public ExtensionSystem {
TestingValueStore* value_store() { return value_store_; }
InfoMap* info_map() override;
QuotaService* quota_service() override;
+ AppSorting* app_sorting() override;
const OneShotEvent& ready() const override;
ContentVerifier* content_verifier() override;
scoped_ptr<ExtensionSet> GetDependentExtensions(
@@ -90,6 +84,7 @@ class TestExtensionSystem : public ExtensionSystem {
scoped_ptr<ExtensionService> extension_service_;
scoped_refptr<InfoMap> info_map_;
scoped_ptr<QuotaService> quota_service_;
+ scoped_ptr<AppSorting> app_sorting_;
OneShotEvent ready_;
};

Powered by Google App Engine
This is Rietveld 408576698