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/ui/webui/extensions/extension_settings_handler.h" | 5 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" |
6 | 6 |
7 #include "apps/app_load_service.h" | 7 #include "apps/app_load_service.h" |
8 #include "apps/saved_files_service.h" | 8 #include "apps/saved_files_service.h" |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/base64.h" | 10 #include "base/base64.h" |
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
834 extension_id_prompting_ = ""; | 834 extension_id_prompting_ = ""; |
835 | 835 |
836 // There will be no EXTENSION_UNLOADED notification for terminated | 836 // There will be no EXTENSION_UNLOADED notification for terminated |
837 // extensions as they were already unloaded. | 837 // extensions as they were already unloaded. |
838 if (was_terminated) | 838 if (was_terminated) |
839 HandleRequestExtensionsData(NULL); | 839 HandleRequestExtensionsData(NULL); |
840 } | 840 } |
841 | 841 |
842 void ExtensionSettingsHandler::ExtensionUninstallCanceled() { | 842 void ExtensionSettingsHandler::ExtensionUninstallCanceled() { |
843 extension_id_prompting_ = ""; | 843 extension_id_prompting_ = ""; |
| 844 web_ui()->CallJavascriptFunction("extensions.ExtensionList.uninstallCancel"); |
844 } | 845 } |
845 | 846 |
846 void ExtensionSettingsHandler::ExtensionWarningsChanged() { | 847 void ExtensionSettingsHandler::ExtensionWarningsChanged() { |
847 MaybeUpdateAfterNotification(); | 848 MaybeUpdateAfterNotification(); |
848 } | 849 } |
849 | 850 |
850 // This is called when the user clicks "Revoke File/Device Access." | 851 // This is called when the user clicks "Revoke File/Device Access." |
851 void ExtensionSettingsHandler::InstallUIProceed() { | 852 void ExtensionSettingsHandler::InstallUIProceed() { |
852 Profile* profile = Profile::FromWebUI(web_ui()); | 853 Profile* profile = Profile::FromWebUI(web_ui()); |
853 extensions::DevicePermissionsManager::Get(profile) | 854 extensions::DevicePermissionsManager::Get(profile) |
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1462 } | 1463 } |
1463 | 1464 |
1464 void ExtensionSettingsHandler::OnReinstallComplete( | 1465 void ExtensionSettingsHandler::OnReinstallComplete( |
1465 bool success, | 1466 bool success, |
1466 const std::string& error, | 1467 const std::string& error, |
1467 webstore_install::Result result) { | 1468 webstore_install::Result result) { |
1468 MaybeUpdateAfterNotification(); | 1469 MaybeUpdateAfterNotification(); |
1469 } | 1470 } |
1470 | 1471 |
1471 } // namespace extensions | 1472 } // namespace extensions |
OLD | NEW |