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/managed/managed_user_creation_controller.h" 6 7 namespace chromeos { 8 9 // static 10 const int ManagedUserCreationController::kDummyAvatarIndex = -111; 11 12 ManagedUserCreationController::StatusConsumer::~StatusConsumer() {} 13 14 // static 15 ManagedUserCreationController* 16 ManagedUserCreationController::current_controller_ = NULL; 17 18 ManagedUserCreationController::ManagedUserCreationController( 19 ManagedUserCreationController::StatusConsumer* consumer) 20 : consumer_(consumer) { 21 DCHECK(!current_controller_) << "More than one controller exist."; 22 current_controller_ = this; 23 } 24 25 ManagedUserCreationController::~ManagedUserCreationController() { 26 current_controller_ = NULL; 27 } 28 29 } // namespace chromeos 30 31