Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Side by Side Diff: chrome/browser/ui/unload_controller_web_contents_delegate.cc

Issue 2681203002: Add Browser::SkipCallBeforeUnload so that the browser windows can be closed regardless of beforeunl… (Closed)
Patch Set: rebase from master Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/unload_controller_web_contents_delegate.h"
6
7 #include "content/public/browser/web_contents.h"
8
9 UnloadControllerWebContentsDelegate::UnloadControllerWebContentsDelegate() {}
10 UnloadControllerWebContentsDelegate::~UnloadControllerWebContentsDelegate() {}
11
12 bool UnloadControllerWebContentsDelegate::ShouldSuppressDialogs(
13 content::WebContents* source) {
14 return true;
15 }
16
17 void UnloadControllerWebContentsDelegate::CloseContents(
18 content::WebContents* source) {
19 delete source;
20 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698