1 // Copyright 2015 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/chrome_omnibox_edit_controller.h"
7 #include "chrome/app/chrome_command_ids.h"
8 #include "chrome/browser/command_updater.h"
10 ChromeOmniboxEditController::ChromeOmniboxEditController(
11 CommandUpdater
* command_updater
)
12 : command_updater_(command_updater
) {}
14 ChromeOmniboxEditController::~ChromeOmniboxEditController() {}
16 void ChromeOmniboxEditController::OnAutocompleteAccept(
17 const GURL
& destination_url
,
18 WindowOpenDisposition disposition
,
19 ui::PageTransition transition
) {
20 OmniboxEditController::OnAutocompleteAccept(destination_url
, disposition
,
23 command_updater_
->ExecuteCommand(IDC_OPEN_CURRENT_URL
);