| 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/crx_installer.h" | 5 #include "chrome/browser/extensions/crx_installer.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "chrome/browser/extensions/webstore_installer.h" | 33 #include "chrome/browser/extensions/webstore_installer.h" |
| 34 #include "chrome/browser/profiles/profile.h" | 34 #include "chrome/browser/profiles/profile.h" |
| 35 #include "chrome/browser/web_applications/web_app.h" | 35 #include "chrome/browser/web_applications/web_app.h" |
| 36 #include "chrome/common/chrome_paths.h" | 36 #include "chrome/common/chrome_paths.h" |
| 37 #include "chrome/common/extensions/extension_constants.h" | 37 #include "chrome/common/extensions/extension_constants.h" |
| 38 #include "chrome/common/extensions/extension_file_util.h" | 38 #include "chrome/common/extensions/extension_file_util.h" |
| 39 #include "chrome/common/extensions/extension_icon_set.h" | 39 #include "chrome/common/extensions/extension_icon_set.h" |
| 40 #include "chrome/common/extensions/manifest_handlers/kiosk_mode_info.h" | 40 #include "chrome/common/extensions/manifest_handlers/kiosk_mode_info.h" |
| 41 #include "chrome/common/extensions/manifest_handlers/shared_module_info.h" | 41 #include "chrome/common/extensions/manifest_handlers/shared_module_info.h" |
| 42 #include "chrome/common/extensions/manifest_url_handler.h" | 42 #include "chrome/common/extensions/manifest_url_handler.h" |
| 43 #include "chrome/common/extensions/permissions/permissions_data.h" | |
| 44 #include "content/public/browser/browser_thread.h" | 43 #include "content/public/browser/browser_thread.h" |
| 45 #include "content/public/browser/notification_service.h" | 44 #include "content/public/browser/notification_service.h" |
| 46 #include "content/public/browser/resource_dispatcher_host.h" | 45 #include "content/public/browser/resource_dispatcher_host.h" |
| 47 #include "content/public/browser/user_metrics.h" | 46 #include "content/public/browser/user_metrics.h" |
| 48 #include "extensions/common/feature_switch.h" | 47 #include "extensions/common/feature_switch.h" |
| 49 #include "extensions/common/manifest.h" | 48 #include "extensions/common/manifest.h" |
| 50 #include "extensions/common/permissions/permission_message_provider.h" | 49 #include "extensions/common/permissions/permission_message_provider.h" |
| 51 #include "extensions/common/permissions/permission_set.h" | 50 #include "extensions/common/permissions/permission_set.h" |
| 51 #include "extensions/common/permissions/permissions_data.h" |
| 52 #include "extensions/common/user_script.h" | 52 #include "extensions/common/user_script.h" |
| 53 #include "grit/chromium_strings.h" | 53 #include "grit/chromium_strings.h" |
| 54 #include "grit/generated_resources.h" | 54 #include "grit/generated_resources.h" |
| 55 #include "grit/theme_resources.h" | 55 #include "grit/theme_resources.h" |
| 56 #include "third_party/skia/include/core/SkBitmap.h" | 56 #include "third_party/skia/include/core/SkBitmap.h" |
| 57 #include "ui/base/l10n/l10n_util.h" | 57 #include "ui/base/l10n/l10n_util.h" |
| 58 #include "ui/base/resource/resource_bundle.h" | 58 #include "ui/base/resource/resource_bundle.h" |
| 59 | 59 |
| 60 #if defined(OS_CHROMEOS) | 60 #if defined(OS_CHROMEOS) |
| 61 #include "chrome/browser/chromeos/login/user_manager.h" | 61 #include "chrome/browser/chromeos/login/user_manager.h" |
| (...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 862 if (!prefs->DidExtensionEscalatePermissions(extension()->id())) | 862 if (!prefs->DidExtensionEscalatePermissions(extension()->id())) |
| 863 return; | 863 return; |
| 864 | 864 |
| 865 if (client_) { | 865 if (client_) { |
| 866 AddRef(); // Balanced in InstallUIProceed() and InstallUIAbort(). | 866 AddRef(); // Balanced in InstallUIProceed() and InstallUIAbort(). |
| 867 client_->ConfirmReEnable(this, extension()); | 867 client_->ConfirmReEnable(this, extension()); |
| 868 } | 868 } |
| 869 } | 869 } |
| 870 | 870 |
| 871 } // namespace extensions | 871 } // namespace extensions |
| OLD | NEW |