summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/ownership/owner_settings_service_factory.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chromeos/ownership/owner_settings_service_factory.h')
-rw-r--r--chrome/browser/chromeos/ownership/owner_settings_service_factory.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/ownership/owner_settings_service_factory.h b/chrome/browser/chromeos/ownership/owner_settings_service_factory.h
index e98773a..597656b 100644
--- a/chrome/browser/chromeos/ownership/owner_settings_service_factory.h
+++ b/chrome/browser/chromeos/ownership/owner_settings_service_factory.h
@@ -9,12 +9,17 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
#include "base/memory/singleton.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
class KeyedService;
class Profile;
+namespace ownership {
+class OwnerKeyUtil;
+}
+
namespace chromeos {
class OwnerSettingsService;
@@ -25,6 +30,11 @@ class OwnerSettingsServiceFactory : public BrowserContextKeyedServiceFactory {
static OwnerSettingsServiceFactory* GetInstance();
+ scoped_refptr<ownership::OwnerKeyUtil> GetOwnerKeyUtil();
+
+ void SetOwnerKeyUtilForTesting(
+ const scoped_refptr<ownership::OwnerKeyUtil>& owner_key_util);
+
private:
friend struct DefaultSingletonTraits<OwnerSettingsServiceFactory>;
@@ -40,6 +50,8 @@ class OwnerSettingsServiceFactory : public BrowserContextKeyedServiceFactory {
virtual KeyedService* BuildServiceInstanceFor(
content::BrowserContext* browser_context) const OVERRIDE;
+ scoped_refptr<ownership::OwnerKeyUtil> owner_key_util_;
+
DISALLOW_COPY_AND_ASSIGN(OwnerSettingsServiceFactory);
};