| Index: chrome/browser/supervised_user/supervised_user_registration_utility_stub.cc
|
| diff --git a/chrome/browser/managed_mode/managed_user_registration_utility_stub.cc b/chrome/browser/supervised_user/supervised_user_registration_utility_stub.cc
|
| similarity index 63%
|
| rename from chrome/browser/managed_mode/managed_user_registration_utility_stub.cc
|
| rename to chrome/browser/supervised_user/supervised_user_registration_utility_stub.cc
|
| index 114964973ac5d11316027d9350a15557d2b69d6c..24619d2abd79388be3efe5ce35e571fa520bb55d 100644
|
| --- a/chrome/browser/managed_mode/managed_user_registration_utility_stub.cc
|
| +++ b/chrome/browser/supervised_user/supervised_user_registration_utility_stub.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "chrome/browser/managed_mode/managed_user_registration_utility_stub.h"
|
| +#include "chrome/browser/supervised_user/supervised_user_registration_utility_stub.h"
|
|
|
| #include "base/bind.h"
|
| #include "base/memory/scoped_ptr.h"
|
| @@ -10,26 +10,27 @@
|
| #include "google_apis/gaia/gaia_urls.h"
|
| #include "google_apis/gaia/google_service_auth_error.h"
|
|
|
| -ManagedUserRegistrationUtilityStub::ManagedUserRegistrationUtilityStub()
|
| +SupervisedUserRegistrationUtilityStub::SupervisedUserRegistrationUtilityStub()
|
| : register_was_called_(false) {
|
| }
|
|
|
| -ManagedUserRegistrationUtilityStub::~ManagedUserRegistrationUtilityStub() {
|
| +SupervisedUserRegistrationUtilityStub::
|
| +~SupervisedUserRegistrationUtilityStub() {
|
| }
|
|
|
| -void ManagedUserRegistrationUtilityStub::Register(
|
| - const std::string& managed_user_id,
|
| - const ManagedUserRegistrationInfo& info,
|
| +void SupervisedUserRegistrationUtilityStub::Register(
|
| + const std::string& supervised_user_id,
|
| + const SupervisedUserRegistrationInfo& info,
|
| const RegistrationCallback& callback) {
|
| DCHECK(!register_was_called_);
|
| register_was_called_ = true;
|
| callback_ = callback;
|
| - managed_user_id_ = managed_user_id;
|
| + supervised_user_id_ = supervised_user_id;
|
| display_name_ = info.name;
|
| master_key_ = info.master_key;
|
| }
|
|
|
| -void ManagedUserRegistrationUtilityStub::RunSuccessCallback(
|
| +void SupervisedUserRegistrationUtilityStub::RunSuccessCallback(
|
| const std::string& token) {
|
| if (callback_.is_null())
|
| return;
|
| @@ -37,7 +38,7 @@ void ManagedUserRegistrationUtilityStub::RunSuccessCallback(
|
| callback_.Reset();
|
| }
|
|
|
| -void ManagedUserRegistrationUtilityStub::RunFailureCallback(
|
| +void SupervisedUserRegistrationUtilityStub::RunFailureCallback(
|
| const GoogleServiceAuthError::State state) {
|
| if (callback_.is_null())
|
| return;
|
|
|