blob: 31d90e6396b3e5fb4340a0c4f50d10ceba6fac4a [file] [log] [blame]
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "test_print_preview_dialog_cloned_observer.h"
#include "chrome/browser/printing/test_print_view_manager_for_request_preview.h"
#include "content/public/browser/web_contents_observer.h"
using content::WebContents;
namespace printing {
TestPrintPreviewDialogClonedObserver::TestPrintPreviewDialogClonedObserver(
content::WebContents* dialog)
: content::WebContentsObserver(dialog) {}
TestPrintPreviewDialogClonedObserver::~TestPrintPreviewDialogClonedObserver() =
default;
void TestPrintPreviewDialogClonedObserver::DidCloneToNewWebContents(
WebContents* old_web_contents,
WebContents* new_web_contents) {
TestPrintViewManagerForRequestPreview::CreateForWebContents(new_web_contents);
}
} // namespace printing