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

Unified Diff: chrome/browser/command_updater.cc

Issue 9479008: Re-factor location bar/toolbar code to get rid of the browser dependency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: call right overloaded method Created 8 years, 9 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/command_updater.h ('k') | chrome/browser/command_updater_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/command_updater.cc
diff --git a/chrome/browser/command_updater.cc b/chrome/browser/command_updater.cc
index 4a1b0dbc781961ad6565ffe41aa9a31434eca89c..6b9cfa61a93d5a4d96c888a27925f3132b43bd85 100644
--- a/chrome/browser/command_updater.cc
+++ b/chrome/browser/command_updater.cc
@@ -41,8 +41,14 @@ bool CommandUpdater::SupportsCommand(int id) const {
}
void CommandUpdater::ExecuteCommand(int id) {
+ ExecuteCommandWithDisposition(id, CURRENT_TAB);
+}
+
+void CommandUpdater::ExecuteCommandWithDisposition(
+ int id,
+ WindowOpenDisposition disposition) {
if (IsCommandEnabled(id))
- delegate_->ExecuteCommand(id);
+ delegate_->ExecuteCommandWithDisposition(id, disposition);
}
CommandUpdater::CommandObserver::~CommandObserver() {
« no previous file with comments | « chrome/browser/command_updater.h ('k') | chrome/browser/command_updater_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698