Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / chromeos / login / users / fake_supervised_user_manager.cc
bloba70f31be9e7be09f2bb00598f4d8827adc174a0b
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.
5 #include "chrome/browser/chromeos/login/users/fake_supervised_user_manager.h"
7 #include <string>
9 namespace chromeos {
11 FakeSupervisedUserManager::FakeSupervisedUserManager() {}
13 FakeSupervisedUserManager::~FakeSupervisedUserManager() {
16 bool FakeSupervisedUserManager::HasSupervisedUsers(
17 const std::string& manager_id) const {
18 return false;
21 const user_manager::User* FakeSupervisedUserManager::CreateUserRecord(
22 const std::string& manager_id,
23 const std::string& local_user_id,
24 const std::string& sync_user_id,
25 const base::string16& display_name) {
26 return NULL;
29 std::string FakeSupervisedUserManager::GenerateUserId() {
30 return std::string();
33 const user_manager::User* FakeSupervisedUserManager::FindByDisplayName(
34 const base::string16& display_name) const {
35 return NULL;
38 const user_manager::User* FakeSupervisedUserManager::FindBySyncId(
39 const std::string& sync_id) const {
40 return NULL;
43 std::string FakeSupervisedUserManager::GetUserSyncId(
44 const std::string& supervised_user_id) const {
45 return std::string();
48 base::string16 FakeSupervisedUserManager::GetManagerDisplayName(
49 const std::string& supervised_user_id) const {
50 return base::string16();
53 std::string FakeSupervisedUserManager::GetManagerUserId(
54 const std::string& supervised_user_id) const {
55 return std::string();
58 std::string FakeSupervisedUserManager::GetManagerDisplayEmail(
59 const std::string& supervised_user_id) const {
60 return std::string();
63 SupervisedUserAuthentication* FakeSupervisedUserManager::GetAuthentication() {
64 return NULL;
67 void FakeSupervisedUserManager::LoadSupervisedUserToken(
68 Profile * profile,
69 const LoadTokenCallback& callback) {
70 callback.Run("token");
73 } // namespace chromeos