| 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_ui.h" | 5 #include "chrome/browser/extensions/extension_install_ui.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 #include "ui/base/l10n/l10n_util.h" | 44 #include "ui/base/l10n/l10n_util.h" |
| 45 #include "ui/base/resource/resource_bundle.h" | 45 #include "ui/base/resource/resource_bundle.h" |
| 46 #include "ui/gfx/image/image.h" | 46 #include "ui/gfx/image/image.h" |
| 47 | 47 |
| 48 #if defined(USE_ASH) | 48 #if defined(USE_ASH) |
| 49 #include "ash/shell.h" | 49 #include "ash/shell.h" |
| 50 #endif | 50 #endif |
| 51 | 51 |
| 52 using content::WebContents; | 52 using content::WebContents; |
| 53 using extensions::BundleInstaller; | 53 using extensions::BundleInstaller; |
| 54 using extensions::Extension; |
| 54 | 55 |
| 55 static const int kTitleIds[ExtensionInstallUI::NUM_PROMPT_TYPES] = { | 56 static const int kTitleIds[ExtensionInstallUI::NUM_PROMPT_TYPES] = { |
| 56 0, // The regular install prompt depends on what's being installed. | 57 0, // The regular install prompt depends on what's being installed. |
| 57 IDS_EXTENSION_INLINE_INSTALL_PROMPT_TITLE, | 58 IDS_EXTENSION_INLINE_INSTALL_PROMPT_TITLE, |
| 58 IDS_EXTENSION_INSTALL_PROMPT_TITLE, | 59 IDS_EXTENSION_INSTALL_PROMPT_TITLE, |
| 59 IDS_EXTENSION_RE_ENABLE_PROMPT_TITLE, | 60 IDS_EXTENSION_RE_ENABLE_PROMPT_TITLE, |
| 60 IDS_EXTENSION_PERMISSIONS_PROMPT_TITLE | 61 IDS_EXTENSION_PERMISSIONS_PROMPT_TITLE |
| 61 }; | 62 }; |
| 62 static const int kHeadingIds[ExtensionInstallUI::NUM_PROMPT_TYPES] = { | 63 static const int kHeadingIds[ExtensionInstallUI::NUM_PROMPT_TYPES] = { |
| 63 IDS_EXTENSION_INSTALL_PROMPT_HEADING, | 64 IDS_EXTENSION_INSTALL_PROMPT_HEADING, |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 bool previous_using_native_theme) { | 542 bool previous_using_native_theme) { |
| 542 Profile* profile = tab_contents->profile(); | 543 Profile* profile = tab_contents->profile(); |
| 543 return new ThemeInstalledInfoBarDelegate( | 544 return new ThemeInstalledInfoBarDelegate( |
| 544 tab_contents->infobar_tab_helper(), | 545 tab_contents->infobar_tab_helper(), |
| 545 profile->GetExtensionService(), | 546 profile->GetExtensionService(), |
| 546 ThemeServiceFactory::GetForProfile(profile), | 547 ThemeServiceFactory::GetForProfile(profile), |
| 547 new_theme, | 548 new_theme, |
| 548 previous_theme_id, | 549 previous_theme_id, |
| 549 previous_using_native_theme); | 550 previous_using_native_theme); |
| 550 } | 551 } |
| OLD | NEW |