Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(754)

Side by Side Diff: chrome/browser/ui/webui/extensions/extension_settings_handler.cc

Issue 952053003: extensions: allow trash to have a focus outline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/resources/extensions/extensions.js ('k') | ui/webui/resources/css/trash.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/resources/extensions/extensions.js ('k') | ui/webui/resources/css/trash.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698