| 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_install_prompt.h" | 5 #include "chrome/browser/extensions/extension_install_prompt.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "chrome/common/chrome_switches.h" | 25 #include "chrome/common/chrome_switches.h" |
| 26 #include "chrome/common/extensions/extension.h" | 26 #include "chrome/common/extensions/extension.h" |
| 27 #include "chrome/common/extensions/extension_icon_set.h" | 27 #include "chrome/common/extensions/extension_icon_set.h" |
| 28 #include "chrome/common/extensions/extension_manifest_constants.h" | 28 #include "chrome/common/extensions/extension_manifest_constants.h" |
| 29 #include "chrome/common/extensions/extension_resource.h" | 29 #include "chrome/common/extensions/extension_resource.h" |
| 30 #include "chrome/common/extensions/extension_switch_utils.h" | 30 #include "chrome/common/extensions/extension_switch_utils.h" |
| 31 #include "chrome/common/extensions/url_pattern.h" | 31 #include "chrome/common/extensions/url_pattern.h" |
| 32 #include "content/public/browser/page_navigator.h" | 32 #include "content/public/browser/page_navigator.h" |
| 33 #include "grit/chromium_strings.h" | 33 #include "grit/chromium_strings.h" |
| 34 #include "grit/generated_resources.h" | 34 #include "grit/generated_resources.h" |
| 35 #include "grit/theme_resources_standard.h" | 35 #include "grit/theme_resources.h" |
| 36 #include "ui/base/l10n/l10n_util.h" | 36 #include "ui/base/l10n/l10n_util.h" |
| 37 #include "ui/base/resource/resource_bundle.h" | 37 #include "ui/base/resource/resource_bundle.h" |
| 38 #include "ui/gfx/image/image.h" | 38 #include "ui/gfx/image/image.h" |
| 39 | 39 |
| 40 using extensions::BundleInstaller; | 40 using extensions::BundleInstaller; |
| 41 using extensions::Extension; | 41 using extensions::Extension; |
| 42 using extensions::PermissionSet; | 42 using extensions::PermissionSet; |
| 43 | 43 |
| 44 static const int kTitleIds[ExtensionInstallPrompt::NUM_PROMPT_TYPES] = { | 44 static const int kTitleIds[ExtensionInstallPrompt::NUM_PROMPT_TYPES] = { |
| 45 0, // The regular install prompt depends on what's being installed. | 45 0, // The regular install prompt depends on what's being installed. |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 Browser* browser) { | 504 Browser* browser) { |
| 505 // |browser| can be NULL in unit tests. | 505 // |browser| can be NULL in unit tests. |
| 506 if (!browser) | 506 if (!browser) |
| 507 return new ExtensionInstallPrompt(NULL, NULL, NULL); | 507 return new ExtensionInstallPrompt(NULL, NULL, NULL); |
| 508 gfx::NativeWindow parent = | 508 gfx::NativeWindow parent = |
| 509 browser->window() ? browser->window()->GetNativeWindow() : NULL; | 509 browser->window() ? browser->window()->GetNativeWindow() : NULL; |
| 510 return new ExtensionInstallPrompt(parent, browser, browser->profile()); | 510 return new ExtensionInstallPrompt(parent, browser, browser->profile()); |
| 511 } | 511 } |
| 512 | 512 |
| 513 } // namespace chrome | 513 } // namespace chrome |
| OLD | NEW |