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

Unified Diff: chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.mm

Issue 2026583002: MacViews: Use native SadTabView in mac_views_browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/cocoa/browser_window_controller.mm ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.mm
diff --git a/chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.mm b/chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.mm
index 1fb3213cbbc9fbc63ffd96c53ba081f5a66845cb..747dfe23d8d0c9698334b120141cab037e39c88b 100644
--- a/chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.mm
+++ b/chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.mm
@@ -6,8 +6,12 @@
#include "base/mac/bundle_locations.h"
#import "chrome/browser/ui/cocoa/tab_contents/sad_tab_view_cocoa.h"
+#include "chrome/common/url_constants.h"
#include "content/public/browser/web_contents.h"
+using content::OpenURLParams;
+using content::Referrer;
+
namespace chrome {
SadTab* SadTab::Create(content::WebContents* web_contents, SadTabKind kind) {
@@ -71,4 +75,10 @@ void SadTabCocoa::Close() {
webContents_->GetController().Reload(true);
}
+- (void)openLearnMoreAboutCrashLink:(id)sender {
+ OpenURLParams params(GURL(chrome::kCrashReasonURL), Referrer(), CURRENT_TAB,
+ ui::PAGE_TRANSITION_LINK, false);
+ webContents_->OpenURL(params);
+}
+
@end
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.mm ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698