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

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

Issue 815273002: Remove and deprecate SEARCH_SUGGEST_ANSWER (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removing suggest answer enum from java Created 5 years, 10 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
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_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
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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 this, &AutocompleteController::ExpireCopiedEntries); 660 this, &AutocompleteController::ExpireCopiedEntries);
665 } 661 }
666 662
667 void AutocompleteController::StartStopTimer() { 663 void AutocompleteController::StartStopTimer() {
668 stop_timer_.Start(FROM_HERE, 664 stop_timer_.Start(FROM_HERE,
669 stop_timer_duration_, 665 stop_timer_duration_,
670 base::Bind(&AutocompleteController::Stop, 666 base::Bind(&AutocompleteController::Stop,
671 base::Unretained(this), 667 base::Unretained(this),
672 false)); 668 false));
673 } 669 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698