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

Unified Diff: chrome/browser/ui/views/toolbar/browser_action_view.cc

Issue 134103002: Refactor the extension message bubbles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile errors on non-Win platform Created 6 years, 11 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/ui/views/toolbar/browser_action_view.cc
diff --git a/chrome/browser/ui/views/toolbar/browser_action_view.cc b/chrome/browser/ui/views/toolbar/browser_action_view.cc
index bf6a496a7485c7fca76c63c6e0c2eb355d4f9ffd..401959b6bab5530a5caafa5915095b17b644426e 100644
--- a/chrome/browser/ui/views/toolbar/browser_action_view.cc
+++ b/chrome/browser/ui/views/toolbar/browser_action_view.cc
@@ -241,10 +241,7 @@ void BrowserActionButton::UpdateState() {
ThemeServiceFactory::GetForProfile(browser_->profile());
int background_id = IDR_BROWSER_ACTION;
- extensions::DevModeBubbleController* controller =
- extensions::DevModeBubbleController::Get(
- browser_->profile());
- if (controller->IsDevModeExtension(extension_))
+ if (extensions::DevModeBubbleDelegate::IsDevModeExtension(extension_))
background_id = IDR_BROWSER_ACTION_HIGHLIGHT;
gfx::ImageSkia bg = *theme->GetImageSkiaNamed(background_id);

Powered by Google App Engine
This is Rietveld 408576698