| Index: chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.mm
|
| diff --git a/chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.mm b/chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.mm
|
| index 12f7ae7f0445e6b873b90bbf7b29f06fef5e9ca5..c5c727c20c17f0fe5e2c98b46b296f5b854f7781 100644
|
| --- a/chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.mm
|
| @@ -30,6 +30,7 @@
|
| #include "chrome/grit/theme_resources.h"
|
| #include "components/strings/grit/components_chromium_strings.h"
|
| #include "components/strings/grit/components_strings.h"
|
| +#include "content/public/browser/navigation_handle.h"
|
| #include "content/public/browser/page_navigator.h"
|
| #include "content/public/browser/ssl_host_state_delegate.h"
|
| #include "content/public/browser/web_contents.h"
|
| @@ -1336,3 +1337,13 @@ void PageInfoUIBridge::SetPermissionInfo(
|
| [bubble_controller_ setPermissionInfo:permission_info_list
|
| andChosenObjects:std::move(chosen_object_info_list)];
|
| }
|
| +
|
| +void PageInfoUIBridge::DidFinishNavigation(
|
| + content::NavigationHandle* navigation_handle) {
|
| + if (!navigation_handle->IsInMainFrame() ||
|
| + !navigation_handle->HasCommitted()) {
|
| + return;
|
| + }
|
| + // If the browser navigates to another page, close the bubble.
|
| + [bubble_controller_ close];
|
| +}
|
|
|