| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_disabled_infobar_delegate.h" | 5 #include "chrome/browser/extensions/extension_disabled_infobar_delegate.h" |
| 6 | 6 |
| 7 #include <string> |
| 8 |
| 7 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 8 #include "chrome/browser/chrome_thread.h" | 10 #include "chrome/browser/chrome_thread.h" |
| 9 #include "chrome/browser/extensions/extension_install_ui.h" | 11 #include "chrome/browser/extensions/extension_install_ui.h" |
| 10 #include "chrome/browser/extensions/extensions_service.h" | 12 #include "chrome/browser/extensions/extensions_service.h" |
| 11 #include "chrome/browser/tab_contents/infobar_delegate.h" | 13 #include "chrome/browser/tab_contents/infobar_delegate.h" |
| 12 #include "chrome/browser/tab_contents/tab_contents.h" | 14 #include "chrome/browser/tab_contents/tab_contents.h" |
| 13 #include "chrome/browser/browser_list.h" | 15 #include "chrome/browser/browser_list.h" |
| 14 #include "chrome/common/extensions/extension_file_util.h" | 16 #include "chrome/common/extensions/extension_file_util.h" |
| 15 #include "chrome/common/extensions/extension_resource.h" | 17 #include "chrome/common/extensions/extension_resource.h" |
| 16 #include "chrome/common/notification_registrar.h" | 18 #include "chrome/common/notification_registrar.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 | 137 |
| 136 tab_contents->AddInfoBar(new ExtensionDisabledInfobarDelegate( | 138 tab_contents->AddInfoBar(new ExtensionDisabledInfobarDelegate( |
| 137 tab_contents, service, extension)); | 139 tab_contents, service, extension)); |
| 138 } | 140 } |
| 139 | 141 |
| 140 void ShowExtensionDisabledDialog(ExtensionsService* service, Profile* profile, | 142 void ShowExtensionDisabledDialog(ExtensionsService* service, Profile* profile, |
| 141 Extension* extension) { | 143 Extension* extension) { |
| 142 // This object manages its own lifetime. | 144 // This object manages its own lifetime. |
| 143 new ExtensionDisabledDialogDelegate(profile, service, extension); | 145 new ExtensionDisabledDialogDelegate(profile, service, extension); |
| 144 } | 146 } |
| OLD | NEW |