Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / omnibox / browser / omnibox_edit_controller.cc
blob3e3293e9d5d76ed168fe4f1ec6298166fecdd358
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 "components/omnibox/browser/omnibox_edit_controller.h"
7 void OmniboxEditController::OnAutocompleteAccept(
8 const GURL& destination_url,
9 WindowOpenDisposition disposition,
10 ui::PageTransition transition) {
11 destination_url_ = destination_url;
12 disposition_ = disposition;
13 transition_ = transition;
16 OmniboxEditController::OmniboxEditController()
17 : disposition_(CURRENT_TAB),
18 transition_(ui::PageTransitionFromInt(
19 ui::PAGE_TRANSITION_TYPED | ui::PAGE_TRANSITION_FROM_ADDRESS_BAR)) {}
21 OmniboxEditController::~OmniboxEditController() {}