Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(391)

Side by Side Diff: chrome/browser/ui/omnibox/omnibox_controller.cc

Issue 13932034: Omnibox refactor, introduced OmniboxController. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Answered Peter's comments. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 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.
4
5 #include "chrome/browser/ui/omnibox/omnibox_controller.h"
6
7 #include "chrome/browser/autocomplete/autocomplete_classifier.h"
8 #include "chrome/browser/autocomplete/autocomplete_controller.h"
9 #include "chrome/browser/search/search.h"
10 #include "chrome/browser/ui/omnibox/omnibox_edit_model.h"
11
12
13 OmniboxController::OmniboxController(OmniboxEditModel* omnibox_edit_model,
14 Profile* profile)
15 : omnibox_edit_model_(omnibox_edit_model) {
16 autocomplete_controller_.reset(new AutocompleteController(profile, this,
17 chrome::IsInstantExtendedAPIEnabled() ?
18 AutocompleteClassifier::kInstantExtendedOmniboxProviders :
19 AutocompleteClassifier::kDefaultOmniboxProviders));
20 }
21
22 OmniboxController::~OmniboxController() {
23 }
24
25 void OmniboxController::OnResultChanged(bool default_match_changed) {
26 omnibox_edit_model_->OnResultChanged(default_match_changed);
27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698