summaryrefslogtreecommitdiff
path: root/chrome/browser/signin/fake_account_tracker_service.cc
diff options
context:
space:
mode:
authorPrimiano Tucci <primiano@google.com>2014-09-30 14:45:55 +0100
committerPrimiano Tucci <primiano@google.com>2014-09-30 14:45:55 +0100
commit1320f92c476a1ad9d19dba2a48c72b75566198e9 (patch)
treeea7f149ccad687b22c18a72b729646568b2d54fb /chrome/browser/signin/fake_account_tracker_service.cc
parent39b78c562f50ad7d5551ee861121f899239525a2 (diff)
downloadchromium_org-1320f92c476a1ad9d19dba2a48c72b75566198e9.tar.gz
Merge from Chromium at DEPS revision 267aeeb8d85c
This commit was generated by merge_to_master.py. Change-Id: Id3aac9713b301fae64408cdaee0888724eeb7c0e
Diffstat (limited to 'chrome/browser/signin/fake_account_tracker_service.cc')
-rw-r--r--chrome/browser/signin/fake_account_tracker_service.cc30
1 files changed, 30 insertions, 0 deletions
diff --git a/chrome/browser/signin/fake_account_tracker_service.cc b/chrome/browser/signin/fake_account_tracker_service.cc
new file mode 100644
index 0000000000..0b80661b69
--- /dev/null
+++ b/chrome/browser/signin/fake_account_tracker_service.cc
@@ -0,0 +1,30 @@
+// Copyright 2014 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.
+
+#include "chrome/browser/signin/fake_account_tracker_service.h"
+
+#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
+#include "components/signin/core/browser/profile_oauth2_token_service.h"
+
+// static
+KeyedService* FakeAccountTrackerService::Build(
+ content::BrowserContext* context) {
+ Profile* profile = Profile::FromBrowserContext(context);
+ FakeAccountTrackerService* service = new FakeAccountTrackerService();
+ service->Initialize(
+ ProfileOAuth2TokenServiceFactory::GetForProfile(profile),
+ profile->GetPrefs(),
+ profile->GetRequestContext());
+ return service;
+}
+
+FakeAccountTrackerService::FakeAccountTrackerService() {}
+
+FakeAccountTrackerService::~FakeAccountTrackerService() {}
+
+void FakeAccountTrackerService::StartFetchingUserInfo(
+ const std::string& account_id) {
+ // In tests, don't do actual network fetch.
+}