| OLD | NEW | 
|   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 "components/omnibox/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" |  | 
|   9 #include "components/metrics/proto/omnibox_event.pb.h" |   8 #include "components/metrics/proto/omnibox_event.pb.h" | 
 |   9 #include "components/omnibox/autocomplete_controller.h" | 
|  10 #include "components/omnibox/autocomplete_input.h" |  10 #include "components/omnibox/autocomplete_input.h" | 
|  11 #include "components/omnibox/autocomplete_match.h" |  11 #include "components/omnibox/autocomplete_match.h" | 
|  12 #include "components/omnibox/autocomplete_provider.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 | | 
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  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 } | 
| OLD | NEW |