Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / chromeos / policy / fake_consumer_management_service.cc
blob0e9d13efc8dbc409c13a1c763e3fe2608c1f49af
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/policy/fake_consumer_management_service.h"
7 namespace policy {
9 FakeConsumerManagementService::FakeConsumerManagementService()
10 : ConsumerManagementService(NULL, NULL),
11 status_(STATUS_UNKNOWN),
12 stage_(ConsumerManagementStage::None()) {
15 FakeConsumerManagementService::~FakeConsumerManagementService() {
18 void FakeConsumerManagementService::SetStatusAndStage(
19 Status status, const ConsumerManagementStage& stage) {
20 status_ = status;
21 SetStage(stage);
24 ConsumerManagementService::Status
25 FakeConsumerManagementService::GetStatus() const {
26 return status_;
29 ConsumerManagementStage FakeConsumerManagementService::GetStage() const {
30 return stage_;
33 void FakeConsumerManagementService::SetStage(
34 const ConsumerManagementStage& stage) {
35 stage_ = stage;
36 NotifyStatusChanged();
39 } // namespace policy