| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/extensions/extension_install_ui.h" | 5 #include "chrome/browser/extensions/extension_install_ui.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "grit/chromium_strings.h" | 8 #include "grit/chromium_strings.h" |
| 9 #include "chrome/browser/browser_list.h" | 9 #include "chrome/browser/browser_list.h" |
| 10 #include "chrome/browser/extensions/theme_preview_infobar_delegate.h" | 10 #include "chrome/browser/extensions/theme_preview_infobar_delegate.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 if (delegate->AsThemePreviewInfobarDelegate()) { | 109 if (delegate->AsThemePreviewInfobarDelegate()) { |
| 110 tab_contents->RemoveInfoBar(delegate); | 110 tab_contents->RemoveInfoBar(delegate); |
| 111 break; | 111 break; |
| 112 } | 112 } |
| 113 } | 113 } |
| 114 | 114 |
| 115 // Now add the new one. | 115 // Now add the new one. |
| 116 tab_contents->AddInfoBar(new ThemePreviewInfobarDelegate( | 116 tab_contents->AddInfoBar(new ThemePreviewInfobarDelegate( |
| 117 tab_contents, extension->name())); | 117 tab_contents, extension->name())); |
| 118 } | 118 } |
| OLD | NEW |