OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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/chrome_sad_tab_client.h" |
| 6 |
| 7 #include "chrome/browser/browser_shutdown.h" |
| 8 #include "chrome/browser/ui/browser_finder.h" |
| 9 #include "chrome/browser/ui/chrome_pages.h" |
| 10 |
| 11 ChromeSadTabClient::ChromeSadTabClient() { |
| 12 } |
| 13 |
| 14 ChromeSadTabClient::~ChromeSadTabClient() { |
| 15 } |
| 16 |
| 17 bool ChromeSadTabClient::IsInBrowserShutdown() { |
| 18 return browser_shutdown::GetShutdownType() != browser_shutdown::NOT_VALID; |
| 19 } |
| 20 |
| 21 void ChromeSadTabClient::ShowFeedbackPage( |
| 22 content::WebContents* web_contents, |
| 23 const std::string& description_template, |
| 24 const std::string& category_tag) { |
| 25 chrome::ShowFeedbackPage( |
| 26 chrome::FindBrowserWithWebContents(web_contents), |
| 27 description_template, |
| 28 category_tag); |
| 29 } |
OLD | NEW |