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

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

Issue 9706017: Remove Ordinals Setters and Getters from ExtensionService (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 9 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_sorting.h
diff --git a/chrome/browser/extensions/extension_sorting.h b/chrome/browser/extensions/extension_sorting.h
index 3542d51d2777a4c7d1d19d06679325426cfd843a..5519ed852b23ac874f6c0de7b0a924c6e9141f82 100644
--- a/chrome/browser/extensions/extension_sorting.h
+++ b/chrome/browser/extensions/extension_sorting.h
@@ -14,6 +14,7 @@
#include "chrome/common/string_ordinal.h"
class ExtensionScopedPrefs;
+class ExtensionService;
class ExtensionSorting {
public:
@@ -21,6 +22,9 @@ class ExtensionSorting {
PrefService* pref_service);
~ExtensionSorting();
+ // Set up the ExtensionService to inform of changes that require syncing.
+ void SetExtensionService(ExtensionService* extension_service);
+
// Properly initialize ExtensionSorting internal values that require
// |extension_ids|.
void Initialize(const ExtensionPrefs::ExtensionIdSet& extension_ids);
@@ -135,6 +139,7 @@ class ExtensionSorting {
ExtensionScopedPrefs* extension_scoped_prefs_; // Weak, owns this instance.
PrefService* pref_service_; // Weak.
+ ExtensionService* extension_service_; // Weak.
Aaron Boodman 2012/03/14 18:54:28 Instead of having a direct dependency on Extension
csharp 2012/03/15 17:21:19 Ok, I've changed the dependency. I looked at the t
// A map of all the StringOrdinal page ordinals mapping to the collections of
// app launch ordinals that exist on that page. This is used for mapping

Powered by Google App Engine
This is Rietveld 408576698