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

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: Addressed review comments 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
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_message_bubble_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3566f2a91226c52f593b732f2ed159a483f7f65a 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::DevModeBubbleController::IsDevModeExtension(extension_))
background_id = IDR_BROWSER_ACTION_HIGHLIGHT;
gfx::ImageSkia bg = *theme->GetImageSkiaNamed(background_id);
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_message_bubble_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698