| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/webstore_ephemeral_installer.h" | 5 #include "chrome/browser/extensions/webstore_ephemeral_installer.h" |
| 6 | 6 |
| 7 #include "chrome/browser/extensions/extension_install_prompt.h" | 7 #include "chrome/browser/extensions/extension_install_prompt.h" |
| 8 #include "chrome/browser/extensions/extension_service.h" | 8 #include "chrome/browser/extensions/extension_service.h" |
| 9 #include "chrome/browser/extensions/extension_system.h" | 9 #include "chrome/browser/extensions/extension_system.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/ui/extensions/application_launch.h" | 11 #include "chrome/browser/ui/extensions/application_launch.h" |
| 12 #include "chrome/common/extensions/permissions/permissions_data.h" | |
| 13 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
| 14 #include "content/public/browser/web_contents.h" | 13 #include "content/public/browser/web_contents.h" |
| 15 #include "content/public/browser/web_contents_view.h" | 14 #include "content/public/browser/web_contents_view.h" |
| 15 #include "extensions/common/permissions/permissions_data.h" |
| 16 | 16 |
| 17 using content::WebContents; | 17 using content::WebContents; |
| 18 | 18 |
| 19 namespace extensions { | 19 namespace extensions { |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 // TODO(tmdiep): Launching the app will be moved downstream when an ephemeral | 23 // TODO(tmdiep): Launching the app will be moved downstream when an ephemeral |
| 24 // app service/manager is implemented. | 24 // app service/manager is implemented. |
| 25 void LaunchApp(Profile* profile, const std::string& id) { | 25 void LaunchApp(Profile* profile, const std::string& id) { |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 return make_scoped_ptr( | 196 return make_scoped_ptr( |
| 197 new ExtensionInstallPrompt(profile(), parent_window_, NULL)); | 197 new ExtensionInstallPrompt(profile(), parent_window_, NULL)); |
| 198 } | 198 } |
| 199 | 199 |
| 200 void WebstoreEphemeralInstaller::WebContentsDestroyed( | 200 void WebstoreEphemeralInstaller::WebContentsDestroyed( |
| 201 content::WebContents* web_contents) { | 201 content::WebContents* web_contents) { |
| 202 AbortInstall(); | 202 AbortInstall(); |
| 203 } | 203 } |
| 204 | 204 |
| 205 } // namespace extensions | 205 } // namespace extensions |
| OLD | NEW |