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

Side by Side Diff: chrome/browser/profile_resetter/profile_reset_global_error.h

Issue 624173002: replace OVERRIDE and FINAL with override and final in chrome/browser/[j-q]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PROFILE_RESETTER_PROFILE_RESET_GLOBAL_ERROR_H_ 5 #ifndef CHROME_BROWSER_PROFILE_RESETTER_PROFILE_RESET_GLOBAL_ERROR_H_
6 #define CHROME_BROWSER_PROFILE_RESETTER_PROFILE_RESET_GLOBAL_ERROR_H_ 6 #define CHROME_BROWSER_PROFILE_RESETTER_PROFILE_RESET_GLOBAL_ERROR_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/timer/elapsed_timer.h" 10 #include "base/timer/elapsed_timer.h"
(...skipping 21 matching lines...) Expand all
32 32
33 // Called when the user clicks on the 'Reset' button. The user can choose to 33 // Called when the user clicks on the 'Reset' button. The user can choose to
34 // send feedback containing the old settings that are now being reset, this is 34 // send feedback containing the old settings that are now being reset, this is
35 // indicated by |send_feedback|. 35 // indicated by |send_feedback|.
36 void OnBubbleViewResetButtonPressed(bool send_feedback); 36 void OnBubbleViewResetButtonPressed(bool send_feedback);
37 37
38 // Called when the user clicks the 'No, thanks' button. 38 // Called when the user clicks the 'No, thanks' button.
39 void OnBubbleViewNoThanksButtonPressed(); 39 void OnBubbleViewNoThanksButtonPressed();
40 40
41 // GlobalError: 41 // GlobalError:
42 virtual bool HasMenuItem() OVERRIDE; 42 virtual bool HasMenuItem() override;
43 virtual int MenuItemCommandID() OVERRIDE; 43 virtual int MenuItemCommandID() override;
44 virtual base::string16 MenuItemLabel() OVERRIDE; 44 virtual base::string16 MenuItemLabel() override;
45 virtual void ExecuteMenuItem(Browser* browser) OVERRIDE; 45 virtual void ExecuteMenuItem(Browser* browser) override;
46 virtual bool HasBubbleView() OVERRIDE; 46 virtual bool HasBubbleView() override;
47 virtual bool HasShownBubbleView() OVERRIDE; 47 virtual bool HasShownBubbleView() override;
48 virtual void ShowBubbleView(Browser* browser) OVERRIDE; 48 virtual void ShowBubbleView(Browser* browser) override;
49 virtual GlobalErrorBubbleViewBase* GetBubbleView() OVERRIDE; 49 virtual GlobalErrorBubbleViewBase* GetBubbleView() override;
50 50
51 private: 51 private:
52 Profile* profile_; 52 Profile* profile_;
53 53
54 // GlobalErrorService owns us, on which AutomaticProfileResetter depends, so 54 // GlobalErrorService owns us, on which AutomaticProfileResetter depends, so
55 // during shutdown, it may get destroyed before we are. 55 // during shutdown, it may get destroyed before we are.
56 // Note: the AutomaticProfileResetter expects call-backs from us to always be 56 // Note: the AutomaticProfileResetter expects call-backs from us to always be
57 // synchronous, so that there will be no call-backs once we are destroyed. 57 // synchronous, so that there will be no call-backs once we are destroyed.
58 base::WeakPtr<AutomaticProfileResetter> automatic_profile_resetter_; 58 base::WeakPtr<AutomaticProfileResetter> automatic_profile_resetter_;
59 59
60 // Used to measure the delay before the bubble actually gets shown. 60 // Used to measure the delay before the bubble actually gets shown.
61 base::ElapsedTimer timer_; 61 base::ElapsedTimer timer_;
62 62
63 // Whether or not we have already shown the bubble. 63 // Whether or not we have already shown the bubble.
64 bool has_shown_bubble_view_; 64 bool has_shown_bubble_view_;
65 65
66 // The reset bubble, if we're currently showing one. 66 // The reset bubble, if we're currently showing one.
67 GlobalErrorBubbleViewBase* bubble_view_; 67 GlobalErrorBubbleViewBase* bubble_view_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(ProfileResetGlobalError); 69 DISALLOW_COPY_AND_ASSIGN(ProfileResetGlobalError);
70 }; 70 };
71 71
72 #endif // CHROME_BROWSER_PROFILE_RESETTER_PROFILE_RESET_GLOBAL_ERROR_H_ 72 #endif // CHROME_BROWSER_PROFILE_RESETTER_PROFILE_RESET_GLOBAL_ERROR_H_
OLDNEW
« no previous file with comments | « chrome/browser/profile_resetter/jtl_interpreter.cc ('k') | chrome/browser/profile_resetter/profile_resetter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698