Remove unneeded includes in //chrome/browser/ui/omnibox
[chromium-blink-merge.git] / chrome / browser / ui / omnibox / omnibox_edit_controller.cc
blobccdcd2ae00c1b9779940ccfea1483323e7d9e9e0
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/omnibox/omnibox_edit_controller.h"
7 #include "chrome/app/chrome_command_ids.h"
8 #include "chrome/browser/command_updater.h"
10 void OmniboxEditController::OnAutocompleteAccept(
11 const GURL& destination_url,
12 WindowOpenDisposition disposition,
13 ui::PageTransition transition) {
14 destination_url_ = destination_url;
15 disposition_ = disposition;
16 transition_ = transition;
17 if (command_updater_)
18 command_updater_->ExecuteCommand(IDC_OPEN_CURRENT_URL);
21 OmniboxEditController::OmniboxEditController(CommandUpdater* command_updater)
22 : command_updater_(command_updater),
23 disposition_(CURRENT_TAB),
24 transition_(ui::PageTransitionFromInt(
25 ui::PAGE_TRANSITION_TYPED |
26 ui::PAGE_TRANSITION_FROM_ADDRESS_BAR)) {
29 OmniboxEditController::~OmniboxEditController() {