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

Side by Side Diff: chrome/browser/signin/fake_account_tracker_service.cc

Issue 471333003: Make sure avatar menu does not use account_id for display purposes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add description to fake Created 6 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/signin/fake_account_tracker_service.h"
6
7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
9 #include "components/signin/core/browser/profile_oauth2_token_service.h"
10
11 // static
12 KeyedService* FakeAccountTrackerService::Build(
13 content::BrowserContext* context) {
14 Profile* profile = Profile::FromBrowserContext(context);
15 FakeAccountTrackerService* service = new FakeAccountTrackerService();
16 service->Initialize(
17 ProfileOAuth2TokenServiceFactory::GetForProfile(profile),
18 profile->GetPrefs(),
19 profile->GetRequestContext());
20 return service;
21 }
22
23 FakeAccountTrackerService::FakeAccountTrackerService() {}
24
25 FakeAccountTrackerService::~FakeAccountTrackerService() {}
26
27 void FakeAccountTrackerService::StartFetchingUserInfo(
28 const std::string& account_id) {
29 // In tests, don't do actual network fetch.
30 }
OLDNEW
« no previous file with comments | « chrome/browser/signin/fake_account_tracker_service.h ('k') | chrome/browser/signin/signin_ui_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698