| Index: chrome/browser/ui/chrome_sad_tab_client.cc
|
| diff --git a/chrome/browser/ui/chrome_sad_tab_client.cc b/chrome/browser/ui/chrome_sad_tab_client.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..55fee9213811f10beb9ddad8b0c3a9a0a6d7cc2e
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/chrome_sad_tab_client.cc
|
| @@ -0,0 +1,42 @@
|
| +// Copyright 2014 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/chrome_sad_tab_client.h"
|
| +
|
| +#include "chrome/browser/browser_shutdown.h"
|
| +#include "chrome/browser/ui/browser_finder.h"
|
| +#include "chrome/browser/ui/chrome_pages.h"
|
| +
|
| +#if !defined(OS_MACOSX)
|
| +#include "components/sad_tab/views/sad_tab_view.h"
|
| +#endif
|
| +
|
| +ChromeSadTabClient::ChromeSadTabClient() {
|
| +}
|
| +
|
| +ChromeSadTabClient::~ChromeSadTabClient() {
|
| +}
|
| +
|
| +#if !defined(OS_MACOSX)
|
| +scoped_ptr<sad_tab::SadTab> ChromeSadTabClient::CreateSadTab(
|
| + content::WebContents* web_contents,
|
| + sad_tab::SadTabKind kind) {
|
| + return scoped_ptr<sad_tab::SadTab>(
|
| + new sad_tab::SadTabView(web_contents, kind, this));
|
| +}
|
| +#endif
|
| +
|
| +bool ChromeSadTabClient::IsInBrowserShutdown() {
|
| + return browser_shutdown::GetShutdownType() != browser_shutdown::NOT_VALID;
|
| +}
|
| +
|
| +void ChromeSadTabClient::ShowFeedbackPage(
|
| + content::WebContents* web_contents,
|
| + const std::string& description_template,
|
| + const std::string& category_tag) {
|
| + chrome::ShowFeedbackPage(
|
| + chrome::FindBrowserWithWebContents(web_contents),
|
| + description_template,
|
| + category_tag);
|
| +}
|
|
|