chromium/chrome/browser/ui/views/chrome_browser_main_extra_parts_views_lacros.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views_lacros.h"

#include "chrome/browser/ui/lacros/float_controller_lacros.h"
#include "chrome/browser/ui/lacros/immersive_context_lacros.h"
#include "chrome/browser/ui/lacros/snap_controller_lacros.h"

ChromeBrowserMainExtraPartsViewsLacros::
    ChromeBrowserMainExtraPartsViewsLacros() = default;

ChromeBrowserMainExtraPartsViewsLacros::
    ~ChromeBrowserMainExtraPartsViewsLacros() = default;

void ChromeBrowserMainExtraPartsViewsLacros::PreProfileInit() {
  float_controller_ = std::make_unique<FloatControllerLacros>();
  immersive_context_ = std::make_unique<ImmersiveContextLacros>();
  snap_controller_ = std::make_unique<SnapControllerLacros>();

  ChromeBrowserMainExtraPartsViews::PreProfileInit();
}