| 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_controller.h" | 5 #include "chrome/browser/autocomplete/autocomplete_controller.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 return; | 77 return; |
| 78 } | 78 } |
| 79 case AutocompleteMatchType::SEARCH_SUGGEST_PERSONALIZED: { | 79 case AutocompleteMatchType::SEARCH_SUGGEST_PERSONALIZED: { |
| 80 *subtype = 39; | 80 *subtype = 39; |
| 81 return; | 81 return; |
| 82 } | 82 } |
| 83 case AutocompleteMatchType::SEARCH_SUGGEST_PROFILE: { | 83 case AutocompleteMatchType::SEARCH_SUGGEST_PROFILE: { |
| 84 *subtype = 44; | 84 *subtype = 44; |
| 85 return; | 85 return; |
| 86 } | 86 } |
| 87 case AutocompleteMatchType::SEARCH_SUGGEST_ANSWER: { | |
| 88 *subtype = 70; | |
| 89 return; | |
| 90 } | |
| 91 case AutocompleteMatchType::NAVSUGGEST: { | 87 case AutocompleteMatchType::NAVSUGGEST: { |
| 92 // Do not set subtype here; subtype may have been set above. | 88 // Do not set subtype here; subtype may have been set above. |
| 93 *type = 5; | 89 *type = 5; |
| 94 return; | 90 return; |
| 95 } | 91 } |
| 96 case AutocompleteMatchType::SEARCH_WHAT_YOU_TYPED: { | 92 case AutocompleteMatchType::SEARCH_WHAT_YOU_TYPED: { |
| 97 *subtype = 57; | 93 *subtype = 57; |
| 98 return; | 94 return; |
| 99 } | 95 } |
| 100 case AutocompleteMatchType::URL_WHAT_YOU_TYPED: { | 96 case AutocompleteMatchType::URL_WHAT_YOU_TYPED: { |
| (...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 this, &AutocompleteController::ExpireCopiedEntries); | 675 this, &AutocompleteController::ExpireCopiedEntries); |
| 680 } | 676 } |
| 681 | 677 |
| 682 void AutocompleteController::StartStopTimer() { | 678 void AutocompleteController::StartStopTimer() { |
| 683 stop_timer_.Start(FROM_HERE, | 679 stop_timer_.Start(FROM_HERE, |
| 684 stop_timer_duration_, | 680 stop_timer_duration_, |
| 685 base::Bind(&AutocompleteController::Stop, | 681 base::Bind(&AutocompleteController::Stop, |
| 686 base::Unretained(this), | 682 base::Unretained(this), |
| 687 false)); | 683 false)); |
| 688 } | 684 } |
| OLD | NEW |