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

Side by Side Diff: chrome/browser/extensions/settings_api_bubble_controller.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) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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/settings_api_bubble_controller.h" 5 #include "chrome/browser/extensions/settings_api_bubble_controller.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "chrome/browser/extensions/extension_service.h" 8 #include "chrome/browser/extensions/extension_service.h"
9 #include "chrome/browser/extensions/extension_toolbar_model.h" 9 #include "chrome/browser/extensions/extension_toolbar_model.h"
10 #include "chrome/browser/extensions/settings_api_helpers.h" 10 #include "chrome/browser/extensions/settings_api_helpers.h"
(...skipping 18 matching lines...) Expand all
29 29
30 class SettingsApiBubbleDelegate 30 class SettingsApiBubbleDelegate
31 : public ExtensionMessageBubbleController::Delegate { 31 : public ExtensionMessageBubbleController::Delegate {
32 public: 32 public:
33 explicit SettingsApiBubbleDelegate(ExtensionService* service, 33 explicit SettingsApiBubbleDelegate(ExtensionService* service,
34 Profile* profile, 34 Profile* profile,
35 SettingsApiOverrideType type); 35 SettingsApiOverrideType type);
36 virtual ~SettingsApiBubbleDelegate(); 36 virtual ~SettingsApiBubbleDelegate();
37 37
38 // ExtensionMessageBubbleController::Delegate methods. 38 // ExtensionMessageBubbleController::Delegate methods.
39 virtual bool ShouldIncludeExtension(const std::string& extension_id) OVERRIDE; 39 virtual bool ShouldIncludeExtension(const std::string& extension_id) override;
40 virtual void AcknowledgeExtension( 40 virtual void AcknowledgeExtension(
41 const std::string& extension_id, 41 const std::string& extension_id,
42 ExtensionMessageBubbleController::BubbleAction user_action) OVERRIDE; 42 ExtensionMessageBubbleController::BubbleAction user_action) override;
43 virtual void PerformAction(const ExtensionIdList& list) OVERRIDE; 43 virtual void PerformAction(const ExtensionIdList& list) override;
44 virtual void OnClose() OVERRIDE; 44 virtual void OnClose() override;
45 virtual base::string16 GetTitle() const OVERRIDE; 45 virtual base::string16 GetTitle() const override;
46 virtual base::string16 GetMessageBody( 46 virtual base::string16 GetMessageBody(
47 bool anchored_to_browser_action) const OVERRIDE; 47 bool anchored_to_browser_action) const override;
48 virtual base::string16 GetOverflowText( 48 virtual base::string16 GetOverflowText(
49 const base::string16& overflow_count) const OVERRIDE; 49 const base::string16& overflow_count) const override;
50 virtual base::string16 GetLearnMoreLabel() const OVERRIDE; 50 virtual base::string16 GetLearnMoreLabel() const override;
51 virtual GURL GetLearnMoreUrl() const OVERRIDE; 51 virtual GURL GetLearnMoreUrl() const override;
52 virtual base::string16 GetActionButtonLabel() const OVERRIDE; 52 virtual base::string16 GetActionButtonLabel() const override;
53 virtual base::string16 GetDismissButtonLabel() const OVERRIDE; 53 virtual base::string16 GetDismissButtonLabel() const override;
54 virtual bool ShouldShowExtensionList() const OVERRIDE; 54 virtual bool ShouldShowExtensionList() const override;
55 virtual void LogExtensionCount(size_t count) OVERRIDE; 55 virtual void LogExtensionCount(size_t count) override;
56 virtual void LogAction( 56 virtual void LogAction(
57 ExtensionMessageBubbleController::BubbleAction action) OVERRIDE; 57 ExtensionMessageBubbleController::BubbleAction action) override;
58 58
59 private: 59 private:
60 // Our extension service. Weak, not owned by us. 60 // Our extension service. Weak, not owned by us.
61 ExtensionService* service_; 61 ExtensionService* service_;
62 62
63 // A weak pointer to the profile we are associated with. Not owned by us. 63 // A weak pointer to the profile we are associated with. Not owned by us.
64 Profile* profile_; 64 Profile* profile_;
65 65
66 // The type of settings override this bubble will report on. This can be, for 66 // The type of settings override this bubble will report on. This can be, for
67 // example, a bubble to notify the user that the search engine has been 67 // example, a bubble to notify the user that the search engine has been
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 return true; 307 return true;
308 } 308 }
309 309
310 bool SettingsApiBubbleController::CloseOnDeactivate() { 310 bool SettingsApiBubbleController::CloseOnDeactivate() {
311 // Startup bubbles tend to get lost in the focus storm that happens on 311 // Startup bubbles tend to get lost in the focus storm that happens on
312 // startup. Other types should dismiss on focus loss. 312 // startup. Other types should dismiss on focus loss.
313 return type_ != BUBBLE_TYPE_STARTUP_PAGES; 313 return type_ != BUBBLE_TYPE_STARTUP_PAGES;
314 } 314 }
315 315
316 } // namespace extensions 316 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/settings_api_bubble_controller.h ('k') | chrome/browser/extensions/shared_module_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698