diff options
Diffstat (limited to 'chrome/browser/command_updater.cc')
-rw-r--r-- | chrome/browser/command_updater.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/chrome/browser/command_updater.cc b/chrome/browser/command_updater.cc index 4a1b0db..3642db4 100644 --- a/chrome/browser/command_updater.cc +++ b/chrome/browser/command_updater.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -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() { |