diff options
Diffstat (limited to 'chrome/browser/ui/website_settings/permission_bubble_manager.cc')
-rw-r--r-- | chrome/browser/ui/website_settings/permission_bubble_manager.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/ui/website_settings/permission_bubble_manager.cc b/chrome/browser/ui/website_settings/permission_bubble_manager.cc index 9eec3bb..8816cee 100644 --- a/chrome/browser/ui/website_settings/permission_bubble_manager.cc +++ b/chrome/browser/ui/website_settings/permission_bubble_manager.cc @@ -234,8 +234,7 @@ void PermissionBubbleManager::NavigationEntryCommitted( } } -void PermissionBubbleManager::WebContentsDestroyed( - content::WebContents* web_contents) { +void PermissionBubbleManager::WebContentsDestroyed() { // If the web contents has been destroyed, treat the bubble as cancelled. CancelPendingQueue(); FinalizeBubble(); @@ -243,7 +242,7 @@ void PermissionBubbleManager::WebContentsDestroyed( // The WebContents is going away; be aggressively paranoid and delete // ourselves lest other parts of the system attempt to add permission bubbles // or use us otherwise during the destruction. - web_contents->RemoveUserData(UserDataKey()); + web_contents()->RemoveUserData(UserDataKey()); // That was the equivalent of "delete this". This object is now destroyed; // returning from this function is the only safe thing to do. } |