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

Unified 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 url_constants.cc 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/chrome_sad_tab_client.h ('k') | chrome/browser/ui/cocoa/browser_window_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ab2b2ea312451ba61fbc6f0ee6510bdad9d9d262
--- /dev/null
+++ b/chrome/browser/ui/chrome_sad_tab_client.cc
@@ -0,0 +1,29 @@
+// 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"
+
+ChromeSadTabClient::ChromeSadTabClient() {
+}
+
+ChromeSadTabClient::~ChromeSadTabClient() {
+}
+
+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);
+}
« no previous file with comments | « chrome/browser/ui/chrome_sad_tab_client.h ('k') | chrome/browser/ui/cocoa/browser_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698