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

Unified Diff: components/signin/core/browser/test_signin_client.cc

Issue 276463002: non-new-profile-management creates a "no-op" style account_reconcilor, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 6 years, 7 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
« no previous file with comments | « components/signin/core/browser/test_signin_client.h ('k') | google_apis/gaia/fake_gaia.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/signin/core/browser/test_signin_client.cc
diff --git a/components/signin/core/browser/test_signin_client.cc b/components/signin/core/browser/test_signin_client.cc
index 7b1d6a4e339e2f043d932ffbc73ae55cb67cd0ba..3868c73de1ab2c74f48663e5a2f063239f0f19a7 100644
--- a/components/signin/core/browser/test_signin_client.cc
+++ b/components/signin/core/browser/test_signin_client.cc
@@ -21,13 +21,19 @@ const int kInvalidProcessId = -1;
TestSigninClient::TestSigninClient()
: request_context_(new net::TestURLRequestContextGetter(
- base::MessageLoopProxy::current())) {
+ base::MessageLoopProxy::current())),
+ pref_service_(NULL) {
LoadDatabase();
}
+TestSigninClient::TestSigninClient(PrefService* pref_service)
+ : pref_service_(pref_service) {}
+
TestSigninClient::~TestSigninClient() {}
-PrefService* TestSigninClient::GetPrefs() { return NULL; }
+PrefService* TestSigninClient::GetPrefs() {
+ return pref_service_;
+}
scoped_refptr<TokenWebData> TestSigninClient::GetDatabase() {
return database_;
« no previous file with comments | « components/signin/core/browser/test_signin_client.h ('k') | google_apis/gaia/fake_gaia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698