: public ExtensionMessageBubbleController::Delegate {
public:
explicit DevModeBubbleDelegate(Profile* profile);
- virtual ~DevModeBubbleDelegate();
+ ~DevModeBubbleDelegate() override;
// ExtensionMessageBubbleController::Delegate methods.
- virtual bool ShouldIncludeExtension(const std::string& extension_id) OVERRIDE;
- virtual void AcknowledgeExtension(
+ bool ShouldIncludeExtension(const std::string& extension_id) override;
+ void AcknowledgeExtension(
const std::string& extension_id,
- ExtensionMessageBubbleController::BubbleAction user_action) OVERRIDE;
- virtual void PerformAction(const ExtensionIdList& list) OVERRIDE;
- virtual void OnClose() OVERRIDE;
- virtual base::string16 GetTitle() const OVERRIDE;
- virtual base::string16 GetMessageBody(
- bool anchored_to_browser_action) const OVERRIDE;
- virtual base::string16 GetOverflowText(
- const base::string16& overflow_count) const OVERRIDE;
- virtual base::string16 GetLearnMoreLabel() const OVERRIDE;
- virtual GURL GetLearnMoreUrl() const OVERRIDE;
- virtual base::string16 GetActionButtonLabel() const OVERRIDE;
- virtual base::string16 GetDismissButtonLabel() const OVERRIDE;
- virtual bool ShouldShowExtensionList() const OVERRIDE;
- virtual void LogExtensionCount(size_t count) OVERRIDE;
- virtual void LogAction(
- ExtensionMessageBubbleController::BubbleAction action) OVERRIDE;
+ ExtensionMessageBubbleController::BubbleAction user_action) override;
+ void PerformAction(const ExtensionIdList& list) override;
+ void OnClose() override;
+ base::string16 GetTitle() const override;
+ base::string16 GetMessageBody(bool anchored_to_browser_action) const override;
+ base::string16 GetOverflowText(
+ const base::string16& overflow_count) const override;
+ GURL GetLearnMoreUrl() const override;
+ base::string16 GetActionButtonLabel() const override;
+ base::string16 GetDismissButtonLabel() const override;
+ bool ShouldShowExtensionList() const override;
+ void LogExtensionCount(size_t count) override;
+ void LogAction(
+ ExtensionMessageBubbleController::BubbleAction action) override;
private:
- // The associated profile (weak).
- Profile* profile_;
-
// Our extension service. Weak, not owned by us.
ExtensionService* service_;
};
DevModeBubbleDelegate::DevModeBubbleDelegate(Profile* profile)
- : profile_(profile),
- service_(ExtensionSystem::Get(profile)->extension_service()) {}
+ : ExtensionMessageBubbleController::Delegate(profile),
+ service_(ExtensionSystem::Get(profile)->extension_service()) {
+}
DevModeBubbleDelegate::~DevModeBubbleDelegate() {
}
}
void DevModeBubbleDelegate::OnClose() {
- ExtensionToolbarModel* toolbar_model = ExtensionToolbarModel::Get(profile_);
+ ExtensionToolbarModel* toolbar_model = ExtensionToolbarModel::Get(profile());
if (toolbar_model)
toolbar_model->StopHighlighting();
}
overflow_count);
}
-base::string16 DevModeBubbleDelegate::GetLearnMoreLabel() const {
- return l10n_util::GetStringUTF16(IDS_LEARN_MORE);
-}
-
GURL DevModeBubbleDelegate::GetLearnMoreUrl() const {
return GURL(chrome::kChromeUIExtensionsURL);
}