| 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_default.h" | 5 #include "chrome/browser/extensions/extension_install_ui_default.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/api/infobars/confirm_infobar_delegate.h" |
| 9 #include "chrome/browser/extensions/extension_install_prompt.h" | 10 #include "chrome/browser/extensions/extension_install_prompt.h" |
| 10 #include "chrome/browser/extensions/theme_installed_infobar_delegate.h" | 11 #include "chrome/browser/extensions/theme_installed_infobar_delegate.h" |
| 11 #include "chrome/browser/infobars/infobar_tab_helper.h" | 12 #include "chrome/browser/infobars/infobar_tab_helper.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" | |
| 14 #include "chrome/browser/themes/theme_service.h" | 14 #include "chrome/browser/themes/theme_service.h" |
| 15 #include "chrome/browser/themes/theme_service_factory.h" | 15 #include "chrome/browser/themes/theme_service_factory.h" |
| 16 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
| 17 #include "chrome/browser/ui/browser_dialogs.h" | 17 #include "chrome/browser/ui/browser_dialogs.h" |
| 18 #include "chrome/browser/ui/browser_finder.h" | 18 #include "chrome/browser/ui/browser_finder.h" |
| 19 #include "chrome/browser/ui/browser_navigator.h" | 19 #include "chrome/browser/ui/browser_navigator.h" |
| 20 #include "chrome/browser/ui/browser_tabstrip.h" | 20 #include "chrome/browser/ui/browser_tabstrip.h" |
| 21 #include "chrome/browser/ui/browser_window.h" | 21 #include "chrome/browser/ui/browser_window.h" |
| 22 #include "chrome/browser/ui/simple_message_box.h" | 22 #include "chrome/browser/ui/simple_message_box.h" |
| 23 #include "chrome/browser/ui/singleton_tabs.h" | 23 #include "chrome/browser/ui/singleton_tabs.h" |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 Browser* browser = browser::FindBrowserWithWebContents(web_contents); | 268 Browser* browser = browser::FindBrowserWithWebContents(web_contents); |
| 269 return chrome::CreateExtensionInstallPromptWithBrowser(browser); | 269 return chrome::CreateExtensionInstallPromptWithBrowser(browser); |
| 270 } | 270 } |
| 271 | 271 |
| 272 // static | 272 // static |
| 273 ExtensionInstallPrompt* ExtensionInstallUI::CreateInstallPromptWithProfile( | 273 ExtensionInstallPrompt* ExtensionInstallUI::CreateInstallPromptWithProfile( |
| 274 Profile* profile) { | 274 Profile* profile) { |
| 275 Browser* browser = browser::FindLastActiveWithProfile(profile); | 275 Browser* browser = browser::FindLastActiveWithProfile(profile); |
| 276 return chrome::CreateExtensionInstallPromptWithBrowser(browser); | 276 return chrome::CreateExtensionInstallPromptWithBrowser(browser); |
| 277 } | 277 } |
| OLD | NEW |