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

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
Index: chrome/browser/ui/panels/old_panel.cc
===================================================================
--- chrome/browser/ui/panels/old_panel.cc (revision 144216)
+++ chrome/browser/ui/panels/old_panel.cc (working copy)
@@ -5,6 +5,7 @@
#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/panels/panel_browser_window.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -25,7 +26,7 @@
}
CommandUpdater* OldPanel::command_updater() {
- return browser_->command_updater();
+ return browser_->command_controller()->command_updater();
}
Profile* OldPanel::profile() const {
@@ -51,8 +52,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 {

Powered by Google App Engine
This is Rietveld 408576698