summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/signin/investigator_dependency_provider.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/signin/investigator_dependency_provider.h')
-rw-r--r--chromium/chrome/browser/signin/investigator_dependency_provider.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/chromium/chrome/browser/signin/investigator_dependency_provider.h b/chromium/chrome/browser/signin/investigator_dependency_provider.h
new file mode 100644
index 00000000000..199f7bb07a5
--- /dev/null
+++ b/chromium/chrome/browser/signin/investigator_dependency_provider.h
@@ -0,0 +1,33 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SIGNIN_INVESTIGATOR_DEPENDENCY_PROVIDER_H_
+#define CHROME_BROWSER_SIGNIN_INVESTIGATOR_DEPENDENCY_PROVIDER_H_
+
+#include "base/memory/raw_ptr.h"
+#include "chrome/browser/profiles/profile.h"
+#include "components/prefs/pref_service.h"
+#include "components/signin/core/browser/signin_investigator.h"
+
+// This version should work for anything with a profile object, like desktop and
+// Android.
+class InvestigatorDependencyProvider
+ : public SigninInvestigator::DependencyProvider {
+ public:
+ explicit InvestigatorDependencyProvider(Profile* profile);
+
+ InvestigatorDependencyProvider(const InvestigatorDependencyProvider&) =
+ delete;
+ InvestigatorDependencyProvider& operator=(
+ const InvestigatorDependencyProvider&) = delete;
+
+ ~InvestigatorDependencyProvider() override;
+ PrefService* GetPrefs() override;
+
+ private:
+ // Non-owning pointer.
+ raw_ptr<Profile> profile_;
+};
+
+#endif // CHROME_BROWSER_SIGNIN_INVESTIGATOR_DEPENDENCY_PROVIDER_H_