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

Unified Diff: chrome/browser/ui/views/location_bar/page_action_with_badge_view.cc

Issue 431173002: Create ExtensionActionView class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge conflict Created 6 years, 4 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/location_bar/page_action_with_badge_view.cc
diff --git a/chrome/browser/ui/views/location_bar/page_action_with_badge_view.cc b/chrome/browser/ui/views/location_bar/page_action_with_badge_view.cc
index b22685ee38f7a19ac2959f9376a850d719a950bc..8401dc2e16af0a77a5fa8e47c8f7a1482fc86e3c 100644
--- a/chrome/browser/ui/views/location_bar/page_action_with_badge_view.cc
+++ b/chrome/browser/ui/views/location_bar/page_action_with_badge_view.cc
@@ -8,11 +8,8 @@
#include "chrome/browser/ui/views/location_bar/page_action_image_view.h"
#include "ui/accessibility/ax_view_state.h"
-using content::WebContents;
-
PageActionWithBadgeView::PageActionWithBadgeView(
- PageActionImageView* image_view) {
- image_view_ = image_view;
+ PageActionImageView* image_view) : image_view_(image_view) {
AddChildView(image_view_);
}
@@ -36,8 +33,7 @@ void PageActionWithBadgeView::Layout() {
image_view_->SetBounds(0, y, width(), height());
}
-void PageActionWithBadgeView::UpdateVisibility(WebContents* contents,
- const GURL& url) {
- image_view_->UpdateVisibility(contents, url);
+void PageActionWithBadgeView::UpdateVisibility(content::WebContents* contents) {
+ image_view_->UpdateVisibility(contents);
SetVisible(image_view_->visible());
}

Powered by Google App Engine
This is Rietveld 408576698