ExtensionSyncService: listen for relevant changes instead of being explicitly called...
[chromium-blink-merge.git] / chrome / browser / chromeos / login / supervised / supervised_user_creation_controller.cc
blob757189eb607c3a8e570f72134c58e34798537ba6
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/supervised/supervised_user_creation_controller.h"
7 namespace chromeos {
9 // static
10 const int SupervisedUserCreationController::kDummyAvatarIndex = -111;
12 SupervisedUserCreationController::StatusConsumer::~StatusConsumer() {}
14 // static
15 SupervisedUserCreationController*
16 SupervisedUserCreationController::current_controller_ = NULL;
18 SupervisedUserCreationController::SupervisedUserCreationController(
19 SupervisedUserCreationController::StatusConsumer* consumer)
20 : consumer_(consumer) {
21 DCHECK(!current_controller_) << "More than one controller exist.";
22 current_controller_ = this;
25 SupervisedUserCreationController::~SupervisedUserCreationController() {
26 current_controller_ = NULL;
29 } // namespace chromeos