blob: a80f51cd7a773ec5b3bd4649c3c7bb871b9170d9 [file] [log] [blame]
// Copyright 2017 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/unload_controller_web_contents_delegate.h"
#include "content/public/browser/web_contents.h"
UnloadControllerWebContentsDelegate::UnloadControllerWebContentsDelegate() {}
UnloadControllerWebContentsDelegate::~UnloadControllerWebContentsDelegate() {}
bool UnloadControllerWebContentsDelegate::ShouldSuppressDialogs(
content::WebContents* source) {
return true;
}
void UnloadControllerWebContentsDelegate::CloseContents(
content::WebContents* source) {
delete source;
}