blob: 28cfcc38c968e816b85b2a95221bf12b15803731 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/user_education/feature_promo_controller.h"
FeaturePromoController::PromoHandle::PromoHandle(
base::WeakPtr<FeaturePromoController> controller)
: controller_(std::move(controller)) {}
FeaturePromoController::PromoHandle::~PromoHandle() {
if (controller_)
controller_->FinishContinuedPromo();
}
FeaturePromoController::PromoHandle::PromoHandle(PromoHandle&& other) = default;
FeaturePromoController::PromoHandle&
FeaturePromoController::PromoHandle::operator=(PromoHandle&& other) = default;