Index: chrome/browser/ui/views/location_bar/open_pdf_in_reader_view.cc |
diff --git a/chrome/browser/ui/views/location_bar/open_pdf_in_reader_view.cc b/chrome/browser/ui/views/location_bar/open_pdf_in_reader_view.cc |
index 2be219f62ea0e5b08e6d1a96bfa47297fb7fb874..f4a3c64aea9bb5a48c01ad15f9ec321adc887dfa 100644 |
--- a/chrome/browser/ui/views/location_bar/open_pdf_in_reader_view.cc |
+++ b/chrome/browser/ui/views/location_bar/open_pdf_in_reader_view.cc |
@@ -35,6 +35,10 @@ void OpenPDFInReaderView::Update(content::WebContents* web_contents) { |
} |
SetVisible(!!model_); |
+ |
+ // Hide the bubble if it is currently shown and the icon is hidden. |
+ if (!model_ && bubble_) |
+ bubble_->GetWidget()->Hide(); |
} |
void OpenPDFInReaderView::ShowBubble() { |