Index: chrome/browser/infobars/infobar_service.cc |
diff --git a/chrome/browser/infobars/infobar_service.cc b/chrome/browser/infobars/infobar_service.cc |
index 3d03544e0971a967e7063dd3fef16f82d36c7fb2..030035b6a1094505ef5fbbd3aaaac8235d6f0908 100644 |
--- a/chrome/browser/infobars/infobar_service.cc |
+++ b/chrome/browser/infobars/infobar_service.cc |
@@ -107,11 +107,11 @@ void InfoBarService::NavigationEntryCommitted( |
OnNavigation(NavigationDetailsFromLoadCommittedDetails(load_details)); |
} |
-void InfoBarService::WebContentsDestroyed(content::WebContents* web_contents) { |
+void InfoBarService::WebContentsDestroyed() { |
// The WebContents is going away; be aggressively paranoid and delete |
// ourselves lest other parts of the system attempt to add infobars 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. |
} |