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

Side by Side Diff: chrome/browser/extensions/extension_disabled_ui.cc

Issue 624153002: replace OVERRIDE and FINAL with override and final in chrome/browser/extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/extensions/extension_disabled_ui.h" 5 #include "chrome/browser/extensions/extension_disabled_ui.h"
6 6
7 #include <bitset> 7 #include <bitset>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 ExtensionDisabledDialogDelegate(ExtensionService* service, 93 ExtensionDisabledDialogDelegate(ExtensionService* service,
94 scoped_ptr<ExtensionInstallPrompt> install_ui, 94 scoped_ptr<ExtensionInstallPrompt> install_ui,
95 const Extension* extension); 95 const Extension* extension);
96 96
97 private: 97 private:
98 friend class base::RefCountedThreadSafe<ExtensionDisabledDialogDelegate>; 98 friend class base::RefCountedThreadSafe<ExtensionDisabledDialogDelegate>;
99 99
100 virtual ~ExtensionDisabledDialogDelegate(); 100 virtual ~ExtensionDisabledDialogDelegate();
101 101
102 // ExtensionInstallPrompt::Delegate: 102 // ExtensionInstallPrompt::Delegate:
103 virtual void InstallUIProceed() OVERRIDE; 103 virtual void InstallUIProceed() override;
104 virtual void InstallUIAbort(bool user_initiated) OVERRIDE; 104 virtual void InstallUIAbort(bool user_initiated) override;
105 105
106 // The UI for showing the install dialog when enabling. 106 // The UI for showing the install dialog when enabling.
107 scoped_ptr<ExtensionInstallPrompt> install_ui_; 107 scoped_ptr<ExtensionInstallPrompt> install_ui_;
108 108
109 ExtensionService* service_; 109 ExtensionService* service_;
110 const Extension* extension_; 110 const Extension* extension_;
111 }; 111 };
112 112
113 ExtensionDisabledDialogDelegate::ExtensionDisabledDialogDelegate( 113 ExtensionDisabledDialogDelegate::ExtensionDisabledDialogDelegate(
114 ExtensionService* service, 114 ExtensionService* service,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 public content::NotificationObserver, 147 public content::NotificationObserver,
148 public extensions::ExtensionUninstallDialog::Delegate { 148 public extensions::ExtensionUninstallDialog::Delegate {
149 public: 149 public:
150 ExtensionDisabledGlobalError(ExtensionService* service, 150 ExtensionDisabledGlobalError(ExtensionService* service,
151 const Extension* extension, 151 const Extension* extension,
152 bool is_remote_install, 152 bool is_remote_install,
153 const gfx::Image& icon); 153 const gfx::Image& icon);
154 virtual ~ExtensionDisabledGlobalError(); 154 virtual ~ExtensionDisabledGlobalError();
155 155
156 // GlobalError implementation. 156 // GlobalError implementation.
157 virtual Severity GetSeverity() OVERRIDE; 157 virtual Severity GetSeverity() override;
158 virtual bool HasMenuItem() OVERRIDE; 158 virtual bool HasMenuItem() override;
159 virtual int MenuItemCommandID() OVERRIDE; 159 virtual int MenuItemCommandID() override;
160 virtual base::string16 MenuItemLabel() OVERRIDE; 160 virtual base::string16 MenuItemLabel() override;
161 virtual void ExecuteMenuItem(Browser* browser) OVERRIDE; 161 virtual void ExecuteMenuItem(Browser* browser) override;
162 virtual gfx::Image GetBubbleViewIcon() OVERRIDE; 162 virtual gfx::Image GetBubbleViewIcon() override;
163 virtual base::string16 GetBubbleViewTitle() OVERRIDE; 163 virtual base::string16 GetBubbleViewTitle() override;
164 virtual std::vector<base::string16> GetBubbleViewMessages() OVERRIDE; 164 virtual std::vector<base::string16> GetBubbleViewMessages() override;
165 virtual base::string16 GetBubbleViewAcceptButtonLabel() OVERRIDE; 165 virtual base::string16 GetBubbleViewAcceptButtonLabel() override;
166 virtual base::string16 GetBubbleViewCancelButtonLabel() OVERRIDE; 166 virtual base::string16 GetBubbleViewCancelButtonLabel() override;
167 virtual void OnBubbleViewDidClose(Browser* browser) OVERRIDE; 167 virtual void OnBubbleViewDidClose(Browser* browser) override;
168 virtual void BubbleViewAcceptButtonPressed(Browser* browser) OVERRIDE; 168 virtual void BubbleViewAcceptButtonPressed(Browser* browser) override;
169 virtual void BubbleViewCancelButtonPressed(Browser* browser) OVERRIDE; 169 virtual void BubbleViewCancelButtonPressed(Browser* browser) override;
170 virtual bool ShouldCloseOnDeactivate() const OVERRIDE; 170 virtual bool ShouldCloseOnDeactivate() const override;
171 171
172 // ExtensionUninstallDialog::Delegate implementation. 172 // ExtensionUninstallDialog::Delegate implementation.
173 virtual void ExtensionUninstallAccepted() OVERRIDE; 173 virtual void ExtensionUninstallAccepted() override;
174 virtual void ExtensionUninstallCanceled() OVERRIDE; 174 virtual void ExtensionUninstallCanceled() override;
175 175
176 // content::NotificationObserver implementation. 176 // content::NotificationObserver implementation.
177 virtual void Observe(int type, 177 virtual void Observe(int type,
178 const content::NotificationSource& source, 178 const content::NotificationSource& source,
179 const content::NotificationDetails& details) OVERRIDE; 179 const content::NotificationDetails& details) override;
180 180
181 private: 181 private:
182 ExtensionService* service_; 182 ExtensionService* service_;
183 const Extension* extension_; 183 const Extension* extension_;
184 bool is_remote_install_; 184 bool is_remote_install_;
185 gfx::Image icon_; 185 gfx::Image icon_;
186 186
187 // How the user responded to the error; used for metrics. 187 // How the user responded to the error; used for metrics.
188 enum UserResponse { 188 enum UserResponse {
189 IGNORED, 189 IGNORED,
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 void ShowExtensionDisabledDialog(ExtensionService* service, 438 void ShowExtensionDisabledDialog(ExtensionService* service,
439 content::WebContents* web_contents, 439 content::WebContents* web_contents,
440 const Extension* extension) { 440 const Extension* extension) {
441 scoped_ptr<ExtensionInstallPrompt> install_ui( 441 scoped_ptr<ExtensionInstallPrompt> install_ui(
442 new ExtensionInstallPrompt(web_contents)); 442 new ExtensionInstallPrompt(web_contents));
443 // This object manages its own lifetime. 443 // This object manages its own lifetime.
444 new ExtensionDisabledDialogDelegate(service, install_ui.Pass(), extension); 444 new ExtensionDisabledDialogDelegate(service, install_ui.Pass(), extension);
445 } 445 }
446 446
447 } // namespace extensions 447 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698