OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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> | 7 #include <string> |
8 | 8 |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/browser/browser_list.h" |
10 #include "chrome/browser/extensions/extension_install_ui.h" | 11 #include "chrome/browser/extensions/extension_install_ui.h" |
11 #include "chrome/browser/extensions/extension_service.h" | 12 #include "chrome/browser/extensions/extension_service.h" |
12 #include "chrome/browser/tab_contents/infobar_delegate.h" | 13 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" |
13 #include "chrome/browser/browser_list.h" | |
14 #include "chrome/common/extensions/extension_file_util.h" | 14 #include "chrome/common/extensions/extension_file_util.h" |
15 #include "chrome/common/extensions/extension_resource.h" | 15 #include "chrome/common/extensions/extension_resource.h" |
16 #include "chrome/common/notification_details.h" | 16 #include "chrome/common/notification_details.h" |
17 #include "chrome/common/notification_registrar.h" | 17 #include "chrome/common/notification_registrar.h" |
18 #include "chrome/common/notification_source.h" | 18 #include "chrome/common/notification_source.h" |
19 #include "content/browser/tab_contents/tab_contents.h" | 19 #include "content/browser/tab_contents/tab_contents.h" |
20 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
21 #include "ui/base/l10n/l10n_util.h" | 21 #include "ui/base/l10n/l10n_util.h" |
22 | 22 |
23 // ExtensionDisabledDialogDelegate -------------------------------------------- | 23 // ExtensionDisabledDialogDelegate -------------------------------------------- |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 | 181 |
182 tab_contents->AddInfoBar(new ExtensionDisabledInfobarDelegate( | 182 tab_contents->AddInfoBar(new ExtensionDisabledInfobarDelegate( |
183 tab_contents, service, extension)); | 183 tab_contents, service, extension)); |
184 } | 184 } |
185 | 185 |
186 void ShowExtensionDisabledDialog(ExtensionService* service, Profile* profile, | 186 void ShowExtensionDisabledDialog(ExtensionService* service, Profile* profile, |
187 const Extension* extension) { | 187 const Extension* extension) { |
188 // This object manages its own lifetime. | 188 // This object manages its own lifetime. |
189 new ExtensionDisabledDialogDelegate(profile, service, extension); | 189 new ExtensionDisabledDialogDelegate(profile, service, extension); |
190 } | 190 } |
OLD | NEW |