Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / chromeos / login / enrollment / enterprise_enrollment_helper.cc
blob07be2fa9f8f9810a094116e3406f5f476fc9a4d4
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/enrollment/enterprise_enrollment_helper.h"
7 #include "base/logging.h"
8 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.h"
10 namespace chromeos {
12 EnterpriseEnrollmentHelper::~EnterpriseEnrollmentHelper() {
15 // static
16 scoped_ptr<EnterpriseEnrollmentHelper> EnterpriseEnrollmentHelper::Create(
17 EnrollmentStatusConsumer* status_consumer,
18 const policy::EnrollmentConfig& enrollment_config,
19 const std::string& enrolling_user_domain) {
20 return make_scoped_ptr(new EnterpriseEnrollmentHelperImpl(
21 status_consumer, enrollment_config, enrolling_user_domain));
24 EnterpriseEnrollmentHelper::EnterpriseEnrollmentHelper(
25 EnrollmentStatusConsumer* status_consumer)
26 : status_consumer_(status_consumer) {
27 DCHECK(status_consumer_);
30 } // namespace chromeos