Index: chrome/browser/ui/views/session_crashed_bubble_view.h |
diff --git a/chrome/browser/ui/views/session_crashed_bubble_view.h b/chrome/browser/ui/views/session_crashed_bubble_view.h |
index 8986da6c983bff5b01a1727d9b83bd3db93ab84b..29bbc1380315e58a1a71034336e98af722b8085f 100644 |
--- a/chrome/browser/ui/views/session_crashed_bubble_view.h |
+++ b/chrome/browser/ui/views/session_crashed_bubble_view.h |
@@ -43,9 +43,15 @@ class SessionCrashedBubbleView |
private: |
SessionCrashedBubbleView(views::View* anchor_view, |
Browser* browser, |
- content::WebContents* web_contents); |
+ content::WebContents* web_contents, |
+ bool offer_uma_optin); |
virtual ~SessionCrashedBubbleView(); |
+ // Creates and shows the session crashed bubble, with |offer_uma_optin| |
+ // indicating whether the UMA opt-in checkbox should be shown. Called |
+ // by Show() after checking whether the UMA option should be presented. |
+ static void ShowForReal(Browser* browser, bool offer_uma_optin); |
+ |
// WidgetDelegateView methods. |
virtual views::View* GetInitiallyFocusedView() OVERRIDE; |
@@ -112,6 +118,9 @@ class SessionCrashedBubbleView |
// Checkbox for the user to opt-in to UMA reporting. |
views::Checkbox* uma_option_; |
+ // Whether or not the UMA opt-in option should be shown. |
+ bool offer_uma_optin_; |
+ |
// Whether or not a navigation has started on current tab. |
bool started_navigation_; |