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

Unified Diff: chrome/browser/ui/panels/old_panel.cc

Issue 10677009: Move command handling and updating off Browser and onto a helper object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/gtk/reload_button_gtk.cc ('k') | chrome/browser/ui/panels/panel_browser_window_cocoa.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/old_panel.cc
===================================================================
--- chrome/browser/ui/panels/old_panel.cc (revision 144460)
+++ chrome/browser/ui/panels/old_panel.cc (working copy)
@@ -5,6 +5,8 @@
#include "chrome/browser/ui/panels/old_panel.h"
#include "chrome/browser/ui/browser.h"
+#include "chrome/browser/ui/browser_command_controller.h"
+#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/panels/panel_browser_window.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -25,7 +27,7 @@
}
CommandUpdater* OldPanel::command_updater() {
- return browser_->command_updater();
+ return browser_->command_controller()->command_updater();
}
Profile* OldPanel::profile() const {
@@ -51,8 +53,8 @@
}
void OldPanel::ExecuteCommandWithDisposition(
- int id, WindowOpenDisposition disposition) {
- browser_->ExecuteCommandWithDisposition(id, disposition);
+ int id, WindowOpenDisposition disposition) {
+ chrome::ExecuteCommandWithDisposition(browser_, id, disposition);
}
SkBitmap OldPanel::GetCurrentPageIcon() const {
« no previous file with comments | « chrome/browser/ui/gtk/reload_button_gtk.cc ('k') | chrome/browser/ui/panels/panel_browser_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698