| Index: chrome/browser/profile_resetter/profile_reset_global_error.h
|
| diff --git a/chrome/browser/profile_resetter/profile_reset_global_error.h b/chrome/browser/profile_resetter/profile_reset_global_error.h
|
| index 8b356962f817d376b8d3feabc25c5c63a9023aa1..674795ee39a16fa3a4d1232ffbc6033f9a39f9c9 100644
|
| --- a/chrome/browser/profile_resetter/profile_reset_global_error.h
|
| +++ b/chrome/browser/profile_resetter/profile_reset_global_error.h
|
| @@ -9,6 +9,7 @@
|
| #include "base/memory/weak_ptr.h"
|
| #include "chrome/browser/ui/global_error/global_error.h"
|
|
|
| +class AutomaticProfileResetter;
|
| class GlobalErrorBubbleViewBase;
|
| class Profile;
|
|
|
| @@ -45,9 +46,12 @@ class ProfileResetGlobalError
|
| private:
|
| Profile* profile_;
|
|
|
| - // The number of times we have shown the bubble so far. This can be >1 if the
|
| - // user dismissed the bubble, then selected the menu item to show it again.
|
| - int num_times_bubble_view_shown_;
|
| + // GlobalErrorServic owns us, on which AutomaticProfileResetter depends, so it
|
| + // can go out of scope before we are destroyed.
|
| + base::WeakPtr<AutomaticProfileResetter> automatic_profile_resetter_;
|
| +
|
| + // Whether or not we have already shown the bubble.
|
| + bool has_shown_bubble_view_;
|
|
|
| // The reset bubble, if we're currently showing one.
|
| GlobalErrorBubbleViewBase* bubble_view_;
|
|
|