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

Side by Side Diff: chrome/browser/ui/panels/panel_settings_menu_model.cc

Issue 7782026: Switch from chrome://extensions to chrome://settings/extensionSettings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/panels/panel_settings_menu_model.h" 5 #include "chrome/browser/ui/panels/panel_settings_menu_model.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 extension->id()); 89 extension->id());
90 break; 90 break;
91 case COMMAND_UNINSTALL: 91 case COMMAND_UNINSTALL:
92 // TODO(jianli): Need to handle the case that the extension API requests 92 // TODO(jianli): Need to handle the case that the extension API requests
93 // the panel to be closed when the uninstall dialog is still showing. 93 // the panel to be closed when the uninstall dialog is still showing.
94 extension_uninstall_dialog_.reset(new ExtensionUninstallDialog( 94 extension_uninstall_dialog_.reset(new ExtensionUninstallDialog(
95 browser->GetProfile())); 95 browser->GetProfile()));
96 extension_uninstall_dialog_->ConfirmUninstall(this, extension); 96 extension_uninstall_dialog_->ConfirmUninstall(this, extension);
97 break; 97 break;
98 case COMMAND_MANAGE: 98 case COMMAND_MANAGE:
99 browser->OpenURL(GURL(chrome::kChromeUIExtensionsURL), 99 browser->ShowOptionsTab(chrome::kExtensionsSubPage);
100 GURL(),
101 SINGLETON_TAB,
102 PageTransition::LINK);
103 break; 100 break;
104 default: 101 default:
105 NOTREACHED(); 102 NOTREACHED();
106 break; 103 break;
107 } 104 }
108 } 105 }
109 106
110 void PanelSettingsMenuModel::ExtensionDialogAccepted() { 107 void PanelSettingsMenuModel::ExtensionDialogAccepted() {
111 const Extension* extension = panel_->GetExtension(); 108 const Extension* extension = panel_->GetExtension();
112 DCHECK(extension); 109 DCHECK(extension);
113 110
114 panel_->browser()->GetProfile()->GetExtensionService()-> 111 panel_->browser()->GetProfile()->GetExtensionService()->
115 UninstallExtension(extension->id(), false, NULL); 112 UninstallExtension(extension->id(), false, NULL);
116 } 113 }
117 114
118 void PanelSettingsMenuModel::ExtensionDialogCanceled() { 115 void PanelSettingsMenuModel::ExtensionDialogCanceled() {
119 } 116 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/extensions/extension_action_context_menu.mm ('k') | chrome/browser/ui/webui/ntp/ntp_resource_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698