| Index: chrome/browser/ui/views/content_setting_bubble_contents.cc
|
| diff --git a/chrome/browser/ui/views/content_setting_bubble_contents.cc b/chrome/browser/ui/views/content_setting_bubble_contents.cc
|
| index 2f198b5d71804eb5094f5803ea255fa8d512455c..448c31f861a662265f8356b7cf0dd31a0d0e2f3f 100644
|
| --- a/chrome/browser/ui/views/content_setting_bubble_contents.cc
|
| +++ b/chrome/browser/ui/views/content_setting_bubble_contents.cc
|
| @@ -22,6 +22,7 @@
|
| #include "chrome/grit/generated_resources.h"
|
| #include "components/content_settings/core/browser/host_content_settings_map.h"
|
| #include "components/strings/grit/components_strings.h"
|
| +#include "content/public/browser/navigation_handle.h"
|
| #include "content/public/browser/plugin_service.h"
|
| #include "content/public/browser/web_contents.h"
|
| #include "ui/base/cursor/cursor.h"
|
| @@ -462,9 +463,11 @@ base::string16 ContentSettingBubbleContents::GetDialogButtonLabel(
|
| return l10n_util::GetStringUTF16(IDS_DONE);
|
| }
|
|
|
| -void ContentSettingBubbleContents::DidNavigateMainFrame(
|
| - const content::LoadCommittedDetails& details,
|
| - const content::FrameNavigateParams& params) {
|
| +void ContentSettingBubbleContents::DidFinishNavigation(
|
| + content::NavigationHandle* navigation_handle) {
|
| + if (!navigation_handle->IsInMainFrame() || !navigation_handle->HasCommitted())
|
| + return;
|
| +
|
| // Content settings are based on the main frame, so if it switches then
|
| // close up shop.
|
| GetWidget()->Close();
|
|
|