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

Unified Diff: chrome/browser/ui/views/session_crashed_bubble_view.h

Issue 2644663003: Offer to open the startup pages after a crash. (Closed)
Patch Set: Typo fix Created 3 years, 11 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
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 9779ce20c58f4cd5bdda6d4b4762b9a5a33900a1..a140bc1943b0fdc13580e8ffb82a3f295ffc3f77 100644
--- a/chrome/browser/ui/views/session_crashed_bubble_view.h
+++ b/chrome/browser/ui/views/session_crashed_bubble_view.h
@@ -62,6 +62,7 @@ class SessionCrashedBubbleView : public SessionCrashedBubble,
void OnWidgetDestroying(views::Widget* widget) override;
views::View* CreateFootnoteView() override;
bool Accept() override;
+ bool Cancel() override;
bool Close() override;
int GetDialogButtons() const override;
base::string16 GetDialogButtonLabel(ui::DialogButton button) const override;
@@ -94,6 +95,12 @@ class SessionCrashedBubbleView : public SessionCrashedBubble,
// Restore previous session after user selects so.
void RestorePreviousSession();
+ // Open startup pages after user selects so.
+ void OpenStartupPages();
+
+ // Enable UMA if the user accepted the offer.
+ void MaybeEnableUMA();
+
// Close and destroy the bubble.
void CloseBubble();
@@ -119,6 +126,10 @@ class SessionCrashedBubbleView : public SessionCrashedBubble,
// collect bubble usage stats.
bool restored_;
+ // Whether or not the user chose to open the startup pages. It is used to
+ // collect bubble usage stats.
+ bool startup_pages_;
+
DISALLOW_COPY_AND_ASSIGN(SessionCrashedBubbleView);
};

Powered by Google App Engine
This is Rietveld 408576698