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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_frame_view.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_browser_frame_view.h" 5 #include "chrome/browser/ui/panels/panel_browser_frame_view.h"
6 6
7 #include "chrome/browser/extensions/extension_service.h" 7 #include "chrome/browser/extensions/extension_service.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/themes/theme_service.h" 9 #include "chrome/browser/themes/theme_service.h"
10 #include "chrome/browser/ui/panels/panel.h" 10 #include "chrome/browser/ui/panels/panel.h"
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 extension->id()); 507 extension->id());
508 break; 508 break;
509 case COMMAND_UNINSTALL: 509 case COMMAND_UNINSTALL:
510 // TODO(jianli): Need to handle the case that the extension API requests 510 // TODO(jianli): Need to handle the case that the extension API requests
511 // the panel to be closed when the uninstall dialog is still showing. 511 // the panel to be closed when the uninstall dialog is still showing.
512 extension_uninstall_dialog_.reset(new ExtensionUninstallDialog( 512 extension_uninstall_dialog_.reset(new ExtensionUninstallDialog(
513 browser->GetProfile())); 513 browser->GetProfile()));
514 extension_uninstall_dialog_->ConfirmUninstall(this, extension); 514 extension_uninstall_dialog_->ConfirmUninstall(this, extension);
515 break; 515 break;
516 case COMMAND_MANAGE: 516 case COMMAND_MANAGE:
517 browser->OpenURL(GURL(chrome::kChromeUIExtensionsURL), 517 browser->ShowOptionsTab(chrome::kExtensionsSubPage);
518 GURL(),
519 SINGLETON_TAB,
520 PageTransition::LINK);
521 break; 518 break;
522 default: 519 default:
523 NOTREACHED(); 520 NOTREACHED();
524 break; 521 break;
525 } 522 }
526 } 523 }
527 524
528 bool PanelBrowserFrameView::ShouldTabIconViewAnimate() const { 525 bool PanelBrowserFrameView::ShouldTabIconViewAnimate() const {
529 // This function is queried during the creation of the window as the 526 // This function is queried during the creation of the window as the
530 // TabIconView we host is initialized, so we need to NULL check the selected 527 // TabIconView we host is initialized, so we need to NULL check the selected
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 settings_menu_contents_.AddItem( 745 settings_menu_contents_.AddItem(
749 COMMAND_DISABLE, l10n_util::GetStringUTF16(IDS_EXTENSIONS_DISABLE)); 746 COMMAND_DISABLE, l10n_util::GetStringUTF16(IDS_EXTENSIONS_DISABLE));
750 settings_menu_contents_.AddItem( 747 settings_menu_contents_.AddItem(
751 COMMAND_UNINSTALL, l10n_util::GetStringUTF16(IDS_EXTENSIONS_UNINSTALL)); 748 COMMAND_UNINSTALL, l10n_util::GetStringUTF16(IDS_EXTENSIONS_UNINSTALL));
752 settings_menu_contents_.AddSeparator(); 749 settings_menu_contents_.AddSeparator();
753 settings_menu_contents_.AddItem( 750 settings_menu_contents_.AddItem(
754 COMMAND_MANAGE, l10n_util::GetStringUTF16(IDS_MANAGE_EXTENSIONS)); 751 COMMAND_MANAGE, l10n_util::GetStringUTF16(IDS_MANAGE_EXTENSIONS));
755 752
756 settings_menu_adapter_.BuildMenu(settings_menu_); 753 settings_menu_adapter_.BuildMenu(settings_menu_);
757 } 754 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698