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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_classifier.cc

Issue 443043003: Rename components/autocomplete to components/omnibox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/autocomplete/autocomplete_classifier.h" 5 #include "chrome/browser/autocomplete/autocomplete_classifier.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "chrome/browser/autocomplete/autocomplete_controller.h" 8 #include "chrome/browser/autocomplete/autocomplete_controller.h"
9 #include "components/autocomplete/autocomplete_input.h"
10 #include "components/autocomplete/autocomplete_match.h"
11 #include "components/autocomplete/autocomplete_provider.h"
12 #include "components/metrics/proto/omnibox_event.pb.h" 9 #include "components/metrics/proto/omnibox_event.pb.h"
10 #include "components/omnibox/autocomplete_input.h"
11 #include "components/omnibox/autocomplete_match.h"
12 #include "components/omnibox/autocomplete_provider.h"
13 #include "url/gurl.h" 13 #include "url/gurl.h"
14 14
15 // static 15 // static
16 const int AutocompleteClassifier::kDefaultOmniboxProviders = 16 const int AutocompleteClassifier::kDefaultOmniboxProviders =
17 AutocompleteProvider::TYPE_BOOKMARK | 17 AutocompleteProvider::TYPE_BOOKMARK |
18 AutocompleteProvider::TYPE_BUILTIN | 18 AutocompleteProvider::TYPE_BUILTIN |
19 AutocompleteProvider::TYPE_HISTORY_QUICK | 19 AutocompleteProvider::TYPE_HISTORY_QUICK |
20 AutocompleteProvider::TYPE_HISTORY_URL | 20 AutocompleteProvider::TYPE_HISTORY_URL |
21 AutocompleteProvider::TYPE_KEYWORD | 21 AutocompleteProvider::TYPE_KEYWORD |
22 AutocompleteProvider::TYPE_SEARCH | 22 AutocompleteProvider::TYPE_SEARCH |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 DCHECK(result.default_match() != result.end()); 60 DCHECK(result.default_match() != result.end());
61 *match = *result.default_match(); 61 *match = *result.default_match();
62 if (alternate_nav_url) 62 if (alternate_nav_url)
63 *alternate_nav_url = result.alternate_nav_url(); 63 *alternate_nav_url = result.alternate_nav_url();
64 } 64 }
65 65
66 void AutocompleteClassifier::Shutdown() { 66 void AutocompleteClassifier::Shutdown() {
67 controller_.reset(); 67 controller_.reset();
68 } 68 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_classifier.h ('k') | chrome/browser/autocomplete/autocomplete_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698