Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / ui / omnibox / chrome_omnibox_edit_controller.cc
blob39ddb25d665f8605203084ae93f76f54474950f4
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,
21 transition);
22 if (command_updater_)
23 command_updater_->ExecuteCommand(IDC_OPEN_CURRENT_URL);