| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_ui.h" | 5 #include "chrome/browser/extensions/extension_disabled_ui.h" |
| 6 | 6 |
| 7 #include <bitset> | 7 #include <bitset> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 #include "extensions/browser/image_loader.h" | 38 #include "extensions/browser/image_loader.h" |
| 39 #include "extensions/browser/notification_types.h" | 39 #include "extensions/browser/notification_types.h" |
| 40 #include "extensions/browser/uninstall_reason.h" | 40 #include "extensions/browser/uninstall_reason.h" |
| 41 #include "extensions/common/constants.h" | 41 #include "extensions/common/constants.h" |
| 42 #include "extensions/common/extension.h" | 42 #include "extensions/common/extension.h" |
| 43 #include "extensions/common/extension_icon_set.h" | 43 #include "extensions/common/extension_icon_set.h" |
| 44 #include "extensions/common/manifest_handlers/icons_handler.h" | 44 #include "extensions/common/manifest_handlers/icons_handler.h" |
| 45 #include "extensions/common/permissions/permission_message_provider.h" | 45 #include "extensions/common/permissions/permission_message_provider.h" |
| 46 #include "extensions/common/permissions/permission_set.h" | 46 #include "extensions/common/permissions/permission_set.h" |
| 47 #include "extensions/common/permissions/permissions_data.h" | 47 #include "extensions/common/permissions/permissions_data.h" |
| 48 #include "grit/theme_resources.h" | |
| 49 #include "ui/base/l10n/l10n_util.h" | 48 #include "ui/base/l10n/l10n_util.h" |
| 50 #include "ui/gfx/image/image.h" | 49 #include "ui/gfx/image/image.h" |
| 51 #include "ui/gfx/image/image_skia_operations.h" | 50 #include "ui/gfx/image/image_skia_operations.h" |
| 52 #include "ui/gfx/size.h" | 51 #include "ui/gfx/size.h" |
| 53 | 52 |
| 54 using extensions::Extension; | 53 using extensions::Extension; |
| 55 | 54 |
| 56 namespace { | 55 namespace { |
| 57 | 56 |
| 58 static const int kIconSize = extension_misc::EXTENSION_ICON_SMALL; | 57 static const int kIconSize = extension_misc::EXTENSION_ICON_SMALL; |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 void ShowExtensionDisabledDialog(ExtensionService* service, | 438 void ShowExtensionDisabledDialog(ExtensionService* service, |
| 440 content::WebContents* web_contents, | 439 content::WebContents* web_contents, |
| 441 const Extension* extension) { | 440 const Extension* extension) { |
| 442 scoped_ptr<ExtensionInstallPrompt> install_ui( | 441 scoped_ptr<ExtensionInstallPrompt> install_ui( |
| 443 new ExtensionInstallPrompt(web_contents)); | 442 new ExtensionInstallPrompt(web_contents)); |
| 444 // This object manages its own lifetime. | 443 // This object manages its own lifetime. |
| 445 new ExtensionDisabledDialogDelegate(service, install_ui.Pass(), extension); | 444 new ExtensionDisabledDialogDelegate(service, install_ui.Pass(), extension); |
| 446 } | 445 } |
| 447 | 446 |
| 448 } // namespace extensions | 447 } // namespace extensions |
| OLD | NEW |