diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-16 02:15:25 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-16 02:15:25 +0000 |
commit | db6a876afe73ed1ad3befa04d0612527222ac168 (patch) | |
tree | 9b38fe9b3a85c8e90bdce18a0c5a163feb1788be /chrome/browser/command_updater.cc | |
parent | 1054bd6ea428148abc41de3285826edccb1244a5 (diff) | |
download | chromium_src-db6a876afe73ed1ad3befa04d0612527222ac168.zip chromium_src-db6a876afe73ed1ad3befa04d0612527222ac168.tar.gz chromium_src-db6a876afe73ed1ad3befa04d0612527222ac168.tar.bz2 |
Revert 126959 - Re-factor location bar/toolbar code to get rid of the browser dependency. This CL is needed to allow code reusing by captive portal view, which will show web content using DomView.
BUG=chromium-os:22630
TEST=browser_tests,unit_tests works
Review URL: http://codereview.chromium.org/9479008
TBR=altimofeev@chromium.org
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127083 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/command_updater.cc')
-rw-r--r-- | chrome/browser/command_updater.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/chrome/browser/command_updater.cc b/chrome/browser/command_updater.cc index 3642db4..4a1b0db 100644 --- a/chrome/browser/command_updater.cc +++ b/chrome/browser/command_updater.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Copyright (c) 2006-2008 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,14 +41,8 @@ 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_->ExecuteCommandWithDisposition(id, disposition); + delegate_->ExecuteCommand(id); } CommandUpdater::CommandObserver::~CommandObserver() { |