| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ios/chrome/browser/infobars/infobar_manager_impl.h" | 5 #include "ios/chrome/browser/infobars/infobar_manager_impl.h" |
| 6 | 6 |
| 7 #include "components/infobars/core/confirm_infobar_delegate.h" | 7 #include "components/infobars/core/confirm_infobar_delegate.h" |
| 8 #include "components/infobars/core/infobar.h" | 8 #include "components/infobars/core/infobar.h" |
| 9 #include "components/infobars/core/infobar_delegate.h" | 9 #include "components/infobars/core/infobar_delegate.h" |
| 10 #include "ios/chrome/browser/infobars/infobar_utils.h" | 10 #include "ios/chrome/browser/infobars/infobar_utils.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 } | 71 } |
| 72 | 72 |
| 73 void InfoBarManagerImpl::WebStateDestroyed() { | 73 void InfoBarManagerImpl::WebStateDestroyed() { |
| 74 // The WebState is going away; be aggressively paranoid and delete this | 74 // The WebState is going away; be aggressively paranoid and delete this |
| 75 // InfoBarManagerImpl lest other parts of the system attempt to add infobars | 75 // InfoBarManagerImpl lest other parts of the system attempt to add infobars |
| 76 // or use it otherwise during the destruction. | 76 // or use it otherwise during the destruction. |
| 77 web_state()->RemoveUserData(UserDataKey()); | 77 web_state()->RemoveUserData(UserDataKey()); |
| 78 // That was the equivalent of "delete this". This object is now destroyed; | 78 // That was the equivalent of "delete this". This object is now destroyed; |
| 79 // returning from this function is the only safe thing to do. | 79 // returning from this function is the only safe thing to do. |
| 80 } | 80 } |
| 81 |
| 82 void InfoBarManagerImpl::OpenURL(const GURL& url, |
| 83 WindowOpenDisposition disposition) { |
| 84 NOTIMPLEMENTED(); |
| 85 } |
| OLD | NEW |