| 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/webstore_standalone_installer.h" | 5 #include "chrome/browser/extensions/webstore_standalone_installer.h" |
| 6 | 6 |
| 7 #include "base/values.h" | 7 #include "base/values.h" |
| 8 #include "base/version.h" | 8 #include "base/version.h" |
| 9 #include "chrome/browser/extensions/crx_installer.h" | 9 #include "chrome/browser/extensions/crx_installer.h" |
| 10 #include "chrome/browser/extensions/extension_install_prompt.h" | 10 #include "chrome/browser/extensions/extension_install_prompt.h" |
| 11 #include "chrome/browser/extensions/extension_install_ui.h" | |
| 12 #include "chrome/browser/extensions/extension_install_ui_util.h" | 11 #include "chrome/browser/extensions/extension_install_ui_util.h" |
| 13 #include "chrome/browser/extensions/extension_service.h" | 12 #include "chrome/browser/extensions/extension_service.h" |
| 14 #include "chrome/browser/extensions/install_tracker.h" | 13 #include "chrome/browser/extensions/install_tracker.h" |
| 15 #include "chrome/browser/extensions/webstore_data_fetcher.h" | 14 #include "chrome/browser/extensions/webstore_data_fetcher.h" |
| 16 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 17 #include "components/crx_file/id_util.h" | 16 #include "components/crx_file/id_util.h" |
| 18 #include "content/public/browser/web_contents.h" | 17 #include "content/public/browser/web_contents.h" |
| 19 #include "extensions/browser/extension_prefs.h" | 18 #include "extensions/browser/extension_prefs.h" |
| 20 #include "extensions/browser/extension_registry.h" | 19 #include "extensions/browser/extension_registry.h" |
| 21 #include "extensions/browser/extension_system.h" | 20 #include "extensions/browser/extension_system.h" |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 void WebstoreStandaloneInstaller::OnWebStoreDataFetcherDone() { | 443 void WebstoreStandaloneInstaller::OnWebStoreDataFetcherDone() { |
| 445 // An instance of this class is passed in as a delegate for the | 444 // An instance of this class is passed in as a delegate for the |
| 446 // WebstoreInstallHelper, ExtensionInstallPrompt and WebstoreInstaller, and | 445 // WebstoreInstallHelper, ExtensionInstallPrompt and WebstoreInstaller, and |
| 447 // therefore needs to remain alive until they are done. Clear the webstore | 446 // therefore needs to remain alive until they are done. Clear the webstore |
| 448 // data fetcher to avoid calling Release in AbortInstall while any of these | 447 // data fetcher to avoid calling Release in AbortInstall while any of these |
| 449 // operations are in progress. | 448 // operations are in progress. |
| 450 webstore_data_fetcher_.reset(); | 449 webstore_data_fetcher_.reset(); |
| 451 } | 450 } |
| 452 | 451 |
| 453 } // namespace extensions | 452 } // namespace extensions |
| OLD | NEW |