Index: chrome/browser/ui/unload_controller_web_contents_delegate.cc |
diff --git a/chrome/browser/ui/unload_controller_web_contents_delegate.cc b/chrome/browser/ui/unload_controller_web_contents_delegate.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a80f51cd7a773ec5b3bd4649c3c7bb871b9170d9 |
--- /dev/null |
+++ b/chrome/browser/ui/unload_controller_web_contents_delegate.cc |
@@ -0,0 +1,20 @@ |
+// 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; |
+} |