| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "chrome/browser/devtools/global_confirm_info_bar.h" | 5 #include "chrome/browser/devtools/global_confirm_info_bar.h" |
| 6 | 6 |
| 7 #include "base/macros.h" |
| 7 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 8 #include "chrome/browser/ui/host_desktop.h" | 9 #include "chrome/browser/ui/host_desktop.h" |
| 9 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 10 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 10 #include "components/infobars/core/infobar.h" | 11 #include "components/infobars/core/infobar.h" |
| 11 #include "ui/gfx/image/image.h" | 12 #include "ui/gfx/image/image.h" |
| 12 | 13 |
| 13 // InfoBarDelegateProxy ------------------------------------------------------- | 14 // InfoBarDelegateProxy ------------------------------------------------------- |
| 14 | 15 |
| 15 class GlobalConfirmInfoBar::DelegateProxy : public ConfirmInfoBarDelegate { | 16 class GlobalConfirmInfoBar::DelegateProxy : public ConfirmInfoBarDelegate { |
| 16 public: | 17 public: |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 break; | 192 break; |
| 192 } | 193 } |
| 193 } | 194 } |
| 194 } | 195 } |
| 195 | 196 |
| 196 void GlobalConfirmInfoBar::OnManagerShuttingDown( | 197 void GlobalConfirmInfoBar::OnManagerShuttingDown( |
| 197 infobars::InfoBarManager* manager) { | 198 infobars::InfoBarManager* manager) { |
| 198 manager->RemoveObserver(this); | 199 manager->RemoveObserver(this); |
| 199 proxies_.erase(manager); | 200 proxies_.erase(manager); |
| 200 } | 201 } |
| OLD | NEW |