Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / chromeos / login / supervised / supervised_user_creation_controller.cc
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/chromeos/login/supervised/supervised_user_creation_controller.h"
6
7 namespace chromeos {
8
9 // static
10 const int SupervisedUserCreationController::kDummyAvatarIndex = -111;
11
12 SupervisedUserCreationController::StatusConsumer::~StatusConsumer() {}
13
14 // static
15 SupervisedUserCreationController*
16     SupervisedUserCreationController::current_controller_ = NULL;
17
18 SupervisedUserCreationController::SupervisedUserCreationController(
19     SupervisedUserCreationController::StatusConsumer* consumer)
20     : consumer_(consumer) {
21   DCHECK(!current_controller_) << "More than one controller exist.";
22   current_controller_ = this;
23 }
24
25 SupervisedUserCreationController::~SupervisedUserCreationController() {
26   current_controller_ = NULL;
27 }
28
29 }  // namespace chromeos
30