| 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/notification_types.h" | 38 #include "extensions/browser/notification_types.h" |
| 39 #include "extensions/browser/uninstall_reason.h" | 39 #include "extensions/browser/uninstall_reason.h" |
| 40 #include "extensions/common/constants.h" | 40 #include "extensions/common/constants.h" |
| 41 #include "extensions/common/extension.h" | 41 #include "extensions/common/extension.h" |
| 42 #include "extensions/common/extension_icon_set.h" | 42 #include "extensions/common/extension_icon_set.h" |
| 43 #include "extensions/common/manifest_handlers/icons_handler.h" | 43 #include "extensions/common/manifest_handlers/icons_handler.h" |
| 44 #include "extensions/common/permissions/permission_message_provider.h" | 44 #include "extensions/common/permissions/permission_message_provider.h" |
| 45 #include "extensions/common/permissions/permission_set.h" | 45 #include "extensions/common/permissions/permission_set.h" |
| 46 #include "extensions/common/permissions/permissions_data.h" | 46 #include "extensions/common/permissions/permissions_data.h" |
| 47 #include "ui/base/l10n/l10n_util.h" | 47 #include "ui/base/l10n/l10n_util.h" |
| 48 #include "ui/gfx/geometry/size.h" |
| 48 #include "ui/gfx/image/image.h" | 49 #include "ui/gfx/image/image.h" |
| 49 #include "ui/gfx/image/image_skia_operations.h" | 50 #include "ui/gfx/image/image_skia_operations.h" |
| 50 #include "ui/gfx/size.h" | |
| 51 | 51 |
| 52 using extensions::Extension; | 52 using extensions::Extension; |
| 53 | 53 |
| 54 namespace { | 54 namespace { |
| 55 | 55 |
| 56 static const int kIconSize = extension_misc::EXTENSION_ICON_SMALL; | 56 static const int kIconSize = extension_misc::EXTENSION_ICON_SMALL; |
| 57 | 57 |
| 58 static base::LazyInstance< | 58 static base::LazyInstance< |
| 59 std::bitset<IDC_EXTENSION_DISABLED_LAST - | 59 std::bitset<IDC_EXTENSION_DISABLED_LAST - |
| 60 IDC_EXTENSION_DISABLED_FIRST + 1> > | 60 IDC_EXTENSION_DISABLED_FIRST + 1> > |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 void ShowExtensionDisabledDialog(ExtensionService* service, | 437 void ShowExtensionDisabledDialog(ExtensionService* service, |
| 438 content::WebContents* web_contents, | 438 content::WebContents* web_contents, |
| 439 const Extension* extension) { | 439 const Extension* extension) { |
| 440 scoped_ptr<ExtensionInstallPrompt> install_ui( | 440 scoped_ptr<ExtensionInstallPrompt> install_ui( |
| 441 new ExtensionInstallPrompt(web_contents)); | 441 new ExtensionInstallPrompt(web_contents)); |
| 442 // This object manages its own lifetime. | 442 // This object manages its own lifetime. |
| 443 new ExtensionDisabledDialogDelegate(service, install_ui.Pass(), extension); | 443 new ExtensionDisabledDialogDelegate(service, install_ui.Pass(), extension); |
| 444 } | 444 } |
| 445 | 445 |
| 446 } // namespace extensions | 446 } // namespace extensions |
| OLD | NEW |