summaryrefslogtreecommitdiffstats
path: root/components/bubble/bubble_controller.cc
diff options
context:
space:
mode:
authorhcarmona <hcarmona@chromium.org>2015-09-08 16:00:56 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-08 23:01:50 +0000
commit428ac3a45740d5d12d3e4ac7f248122f9b3c53c9 (patch)
tree07dc153790f9f5f183547bebc8da8d04764335d3 /components/bubble/bubble_controller.cc
parentb80838fdc92209c443c43a742284ada39dd2d89e (diff)
downloadchromium_src-428ac3a45740d5d12d3e4ac7f248122f9b3c53c9.zip
chromium_src-428ac3a45740d5d12d3e4ac7f248122f9b3c53c9.tar.gz
chromium_src-428ac3a45740d5d12d3e4ac7f248122f9b3c53c9.tar.bz2
Pass a BubbleReference to BubbleUI::Show.
Moved the BubbleReference to its own file to avoid having to include bubble_manager.h everywhere. The BubbleUI needs to be able to notify the bubble manager when it needs to be closed. BUG=496955 Review URL: https://codereview.chromium.org/1323133002 Cr-Commit-Position: refs/heads/master@{#347820}
Diffstat (limited to 'components/bubble/bubble_controller.cc')
-rw-r--r--components/bubble/bubble_controller.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/bubble/bubble_controller.cc b/components/bubble/bubble_controller.cc
index 877b3f8..e32cd21 100644
--- a/components/bubble/bubble_controller.cc
+++ b/components/bubble/bubble_controller.cc
@@ -28,7 +28,7 @@ void BubbleController::Show() {
DCHECK(!bubble_ui_);
bubble_ui_ = delegate_->BuildBubbleUI();
DCHECK(bubble_ui_);
- bubble_ui_->Show();
+ bubble_ui_->Show(AsWeakPtr());
// TODO(hcarmona): log that bubble was shown.
}