| Index: components/bubble/bubble_controller.cc
|
| diff --git a/components/bubble/bubble_controller.cc b/components/bubble/bubble_controller.cc
|
| index e32cd21716428aa0845c41c6a865a6c4ff0b1849..5e045390d24cd6305324fd203c3935ced2165042 100644
|
| --- a/components/bubble/bubble_controller.cc
|
| +++ b/components/bubble/bubble_controller.cc
|
| @@ -21,12 +21,20 @@ BubbleController::~BubbleController() {
|
| }
|
|
|
| bool BubbleController::CloseBubble(BubbleCloseReason reason) {
|
| + DCHECK(thread_checker_.CalledOnValidThread());
|
| return manager_->CloseBubble(this->AsWeakPtr(), reason);
|
| }
|
|
|
| +bool BubbleController::UpdateBubbleUi() {
|
| + DCHECK(thread_checker_.CalledOnValidThread());
|
| + if (!bubble_ui_)
|
| + return false;
|
| + return delegate_->UpdateBubbleUi(bubble_ui_.get());
|
| +}
|
| +
|
| void BubbleController::Show() {
|
| DCHECK(!bubble_ui_);
|
| - bubble_ui_ = delegate_->BuildBubbleUI();
|
| + bubble_ui_ = delegate_->BuildBubbleUi();
|
| DCHECK(bubble_ui_);
|
| bubble_ui_->Show(AsWeakPtr());
|
| // TODO(hcarmona): log that bubble was shown.
|
|
|