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

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

Issue 543663002: Componentize sad_tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GN Created 6 years, 3 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 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 #if !defined(OS_MACOSX)
12 #include "components/sad_tab/views/sad_tab_view.h"
13 #endif
14
15 ChromeSadTabClient::ChromeSadTabClient() {
16 }
17
18 ChromeSadTabClient::~ChromeSadTabClient() {
19 }
20
21 #if !defined(OS_MACOSX)
22 scoped_ptr<sad_tab::SadTab> ChromeSadTabClient::CreateSadTab(
23 content::WebContents* web_contents,
24 sad_tab::SadTabKind kind) {
25 return scoped_ptr<sad_tab::SadTab>(
26 new sad_tab::SadTabView(web_contents, kind, this));
27 }
28 #endif
29
30 bool ChromeSadTabClient::IsInBrowserShutdown() {
31 return browser_shutdown::GetShutdownType() != browser_shutdown::NOT_VALID;
32 }
33
34 void ChromeSadTabClient::ShowFeedbackPage(
35 content::WebContents* web_contents,
36 const std::string& description_template,
37 const std::string& category_tag) {
38 chrome::ShowFeedbackPage(
39 chrome::FindBrowserWithWebContents(web_contents),
40 description_template,
41 category_tag);
42 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698