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

Unified Diff: chrome/browser/extensions/extension_message_bubble_controller.cc

Issue 1881773002: [Extensions UI] Convert ExtensionMessageBubbles to ToolbarActionsBarBubbles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_message_bubble_controller.cc
diff --git a/chrome/browser/extensions/extension_message_bubble_controller.cc b/chrome/browser/extensions/extension_message_bubble_controller.cc
index 28cb4ad61e66fb7f54b4a106c26de15139b921a5..dfe1fed115a2874f655d4a0ddf31fb47f9e2b5c7 100644
--- a/chrome/browser/extensions/extension_message_bubble_controller.cc
+++ b/chrome/browser/extensions/extension_message_bubble_controller.cc
@@ -107,6 +107,8 @@ ExtensionMessageBubbleController::ExtensionMessageBubbleController(
}
ExtensionMessageBubbleController::~ExtensionMessageBubbleController() {
+ if (did_highlight_)
+ ToolbarActionsModel::Get(profile())->StopHighlighting();
}
Profile* ExtensionMessageBubbleController::profile() {
@@ -272,9 +274,6 @@ void ExtensionMessageBubbleController::OnClose() {
if (delegate_->ClearProfileSetAfterAction())
GetProfileSet()->clear();
}
-
- if (did_highlight_)
- ToolbarActionsModel::Get(profile())->StopHighlighting();
}
std::set<Profile*>* ExtensionMessageBubbleController::GetProfileSet() {

Powered by Google App Engine
This is Rietveld 408576698