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

Unified Diff: chrome/browser/ui/browser_window.h

Issue 841163002: MacViews: Fix duplicate ShowSessionCrashBubble and ShowProfileResetBubble (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@keybinding
Patch Set: Created 5 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/browser_window.h
diff --git a/chrome/browser/ui/browser_window.h b/chrome/browser/ui/browser_window.h
index 18595d5a3cef2e7047e14f5856ab92b71fdcb960..d4e6aa800eddbbb2777e41836740658a14c3e149 100644
--- a/chrome/browser/ui/browser_window.h
+++ b/chrome/browser/ui/browser_window.h
@@ -23,9 +23,11 @@
class Browser;
class DownloadShelf;
class FindBar;
+class GlobalErrorBubbleViewBase;
class GURL;
class LocationBar;
class Profile;
+class ProfileResetGlobalError;
class StatusBubble;
class TemplateURL;
@@ -238,6 +240,16 @@ class BrowserWindow : public ui::BaseWindow {
translate::TranslateErrors::Type error_type,
bool is_user_gesture) = 0;
+ // Create a session recovery bubble if the last session crashed. It also
+ // offers the option to enable metrics reporting if it's not already enabled.
+ // Returns true if a bubble is created, returns false if nothing is created.
+ virtual bool ShowSessionCrashedBubble() = 0;
+
+ // Shows the profile reset bubble on the platforms that support it.
+ virtual bool IsProfileResetBubbleSupported() const = 0;
+ virtual GlobalErrorBubbleViewBase* ShowProfileResetBubble(
+ const base::WeakPtr<ProfileResetGlobalError>& global_error) = 0;
+
#if defined(ENABLE_ONE_CLICK_SIGNIN)
enum OneClickSigninBubbleType {
ONE_CLICK_SIGNIN_BUBBLE_TYPE_BUBBLE,
« no previous file with comments | « chrome/browser/profile_resetter/profile_reset_global_error.cc ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698