| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_SIGNIN_INVESTIGATOR_DEPENDENCY_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_INVESTIGATOR_DEPENDENCY_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_SIGNIN_INVESTIGATOR_DEPENDENCY_PROVIDER_H_ | 6 #define CHROME_BROWSER_SIGNIN_INVESTIGATOR_DEPENDENCY_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/prefs/pref_service.h" | |
| 9 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "components/prefs/pref_service.h" |
| 10 #include "components/signin/core/browser/signin_investigator.h" | 10 #include "components/signin/core/browser/signin_investigator.h" |
| 11 | 11 |
| 12 // This version should work for anything with a profile object, like desktop and | 12 // This version should work for anything with a profile object, like desktop and |
| 13 // Android. | 13 // Android. |
| 14 class InvestigatorDependencyProvider | 14 class InvestigatorDependencyProvider |
| 15 : public SigninInvestigator::DependencyProvider { | 15 : public SigninInvestigator::DependencyProvider { |
| 16 public: | 16 public: |
| 17 explicit InvestigatorDependencyProvider(Profile* profile); | 17 explicit InvestigatorDependencyProvider(Profile* profile); |
| 18 ~InvestigatorDependencyProvider() override; | 18 ~InvestigatorDependencyProvider() override; |
| 19 PrefService* GetPrefs() override; | 19 PrefService* GetPrefs() override; |
| 20 | 20 |
| 21 private: | 21 private: |
| 22 // Non-owning pointer. | 22 // Non-owning pointer. |
| 23 Profile* profile_; | 23 Profile* profile_; |
| 24 DISALLOW_COPY_AND_ASSIGN(InvestigatorDependencyProvider); | 24 DISALLOW_COPY_AND_ASSIGN(InvestigatorDependencyProvider); |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 #endif // CHROME_BROWSER_SIGNIN_INVESTIGATOR_DEPENDENCY_PROVIDER_H_ | 27 #endif // CHROME_BROWSER_SIGNIN_INVESTIGATOR_DEPENDENCY_PROVIDER_H_ |
| OLD | NEW |