| Index: chrome/browser/ui/website_settings/permission_bubble_manager.cc
|
| diff --git a/chrome/browser/ui/website_settings/permission_bubble_manager.cc b/chrome/browser/ui/website_settings/permission_bubble_manager.cc
|
| index 18072e1631926dd5dbebf3063537893be1d4a6ca..736a8097d011e353e112e56d2e25716a5bdaf43e 100644
|
| --- a/chrome/browser/ui/website_settings/permission_bubble_manager.cc
|
| +++ b/chrome/browser/ui/website_settings/permission_bubble_manager.cc
|
| @@ -145,8 +145,7 @@ void PermissionBubbleManager::NavigationEntryCommitted(
|
| }
|
| }
|
|
|
| -void PermissionBubbleManager::WebContentsDestroyed(
|
| - content::WebContents* web_contents) {
|
| +void PermissionBubbleManager::WebContentsDestroyed() {
|
| // If the web contents has been destroyed, do not attempt to notify
|
| // the requests of any changes - simply close the bubble.
|
| CancelPendingQueue();
|
| @@ -155,7 +154,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.
|
| }
|
|
|