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

Unified Diff: ash/shelf/overflow_bubble.cc

Issue 24469006: Fixing crash Report - Magic Signature: views::View::ConvertPointToScreen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A self check encountered a few things.. Created 7 years, 3 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: ash/shelf/overflow_bubble.cc
diff --git a/ash/shelf/overflow_bubble.cc b/ash/shelf/overflow_bubble.cc
index 84a3b8bdd329492462e85d5911dd6fbaf8e4727a..a94a2d30728d0363eb67715ce984263b1050c8d8 100644
--- a/ash/shelf/overflow_bubble.cc
+++ b/ash/shelf/overflow_bubble.cc
@@ -81,8 +81,9 @@ class OverflowBubbleView : public views::BubbleDelegateView {
virtual gfx::Rect GetBubbleBounds() OVERRIDE;
ShelfLayoutManager* GetShelfLayoutManagerForLauncher() const {
+ DCHECK(AnchorView());
msw 2013/09/27 18:20:31 nit: Remove this. DCHECKing just before a potentia
Mr4D (OOO till 08-26) 2013/09/27 20:29:35 Done.
return ShelfLayoutManager::ForLauncher(
- anchor_view()->GetWidget()->GetNativeView());
+ AnchorView()->GetWidget()->GetNativeView());
}
LauncherView* launcher_view_; // Owned by views hierarchy.
@@ -102,7 +103,7 @@ void OverflowBubbleView::InitOverflowBubble(views::View* anchor,
LauncherView* launcher_view) {
// set_anchor_view needs to be called before GetShelfLayoutManagerForLauncher
// can be called.
- set_anchor_view(anchor);
+ SetAnchorView(anchor);
set_arrow(GetBubbleArrow());
set_background(NULL);
set_color(SkColorSetARGB(kLauncherBackgroundAlpha, 0, 0, 0));

Powered by Google App Engine
This is Rietveld 408576698