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

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

Issue 670463004: Make a platform-independent ToolbarActionViewController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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_image_view.cc
diff --git a/chrome/browser/ui/views/location_bar/page_action_image_view.cc b/chrome/browser/ui/views/location_bar/page_action_image_view.cc
index 1c59eeb26d8b29c9344a817d9e55a322d10ea49f..f582ee6855b3dac7a969e5960ae6c6d9354c96bb 100644
--- a/chrome/browser/ui/views/location_bar/page_action_image_view.cc
+++ b/chrome/browser/ui/views/location_bar/page_action_image_view.cc
@@ -117,7 +117,7 @@ void PageActionImageView::PaintChildren(gfx::Canvas* canvas,
}
}
-void PageActionImageView::OnIconUpdated() {
+void PageActionImageView::UpdateState() {
UpdateVisibility(GetCurrentWebContents());
}
@@ -137,7 +137,7 @@ views::Widget* PageActionImageView::GetParentForContextMenu() {
return GetWidget();
}
-ExtensionActionViewController*
+ToolbarActionViewController*
PageActionImageView::GetPreferredPopupViewController() {
return view_controller_.get();
}

Powered by Google App Engine
This is Rietveld 408576698