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

Unified Diff: extensions/browser/extension_prefs.h

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/browser/extension_prefs.h
diff --git a/extensions/browser/extension_prefs.h b/extensions/browser/extension_prefs.h
index 026a4c65464dd0418ce6e05c118bc0c680c1940b..fe545a2a477ab9955516e6ede2ce9b6e93cd4d2f 100644
--- a/extensions/browser/extension_prefs.h
+++ b/extensions/browser/extension_prefs.h
@@ -134,7 +134,6 @@ class ExtensionPrefs : public ExtensionScopedPrefs, public KeyedService {
PrefService* prefs,
const base::FilePath& root_dir,
ExtensionPrefValueMap* extension_pref_value_map,
- scoped_ptr<AppSorting> app_sorting,
bool extensions_disabled,
const std::vector<ExtensionPrefsObserver*>& early_observers);
@@ -144,7 +143,6 @@ class ExtensionPrefs : public ExtensionScopedPrefs, public KeyedService {
PrefService* prefs,
const base::FilePath& root_dir,
ExtensionPrefValueMap* extension_pref_value_map,
- scoped_ptr<AppSorting> app_sorting,
bool extensions_disabled,
const std::vector<ExtensionPrefsObserver*>& early_observers,
scoped_ptr<TimeProvider> time_provider);
@@ -501,7 +499,8 @@ class ExtensionPrefs : public ExtensionScopedPrefs, public KeyedService {
PrefService* pref_service() const { return prefs_; }
// The underlying AppSorting.
- AppSorting* app_sorting() const { return app_sorting_.get(); }
+ void set_app_sorting(AppSorting* app_sorting) { app_sorting_ = app_sorting; }
+ AppSorting* app_sorting() const { return app_sorting_; }
Marc Treib 2015/07/29 09:53:32 This accessor should be removed, and all callers c
not at google - send to devlin 2015/07/29 18:22:03 SGTM.
// Schedules garbage collection of an extension's on-disk data on the next
// start of this ExtensionService. Applies only to extensions with isolated
@@ -552,7 +551,6 @@ class ExtensionPrefs : public ExtensionScopedPrefs, public KeyedService {
ExtensionPrefs(PrefService* prefs,
const base::FilePath& root_dir,
ExtensionPrefValueMap* extension_pref_value_map,
- scoped_ptr<AppSorting> app_sorting,
scoped_ptr<TimeProvider> time_provider,
bool extensions_disabled,
const std::vector<ExtensionPrefsObserver*>& early_observers);
@@ -682,7 +680,7 @@ class ExtensionPrefs : public ExtensionScopedPrefs, public KeyedService {
// Contains all the logic for handling the order for various extension
// properties.
- scoped_ptr<AppSorting> app_sorting_;
+ AppSorting* app_sorting_;
scoped_ptr<TimeProvider> time_provider_;

Powered by Google App Engine
This is Rietveld 408576698