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

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

Issue 450243002: Move string resources to omnibox_strings.grdp (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
« no previous file with comments | « chrome/browser/autocomplete/keyword_provider.cc ('k') | components/components_strings.grd » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/search_provider.h" 5 #include "chrome/browser/autocomplete/search_provider.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
(...skipping 22 matching lines...) Expand all
33 #include "components/history/core/browser/keyword_search_term.h" 33 #include "components/history/core/browser/keyword_search_term.h"
34 #include "components/metrics/proto/omnibox_input_type.pb.h" 34 #include "components/metrics/proto/omnibox_input_type.pb.h"
35 #include "components/omnibox/autocomplete_provider_listener.h" 35 #include "components/omnibox/autocomplete_provider_listener.h"
36 #include "components/omnibox/autocomplete_result.h" 36 #include "components/omnibox/autocomplete_result.h"
37 #include "components/omnibox/omnibox_field_trial.h" 37 #include "components/omnibox/omnibox_field_trial.h"
38 #include "components/omnibox/url_prefix.h" 38 #include "components/omnibox/url_prefix.h"
39 #include "components/search/search.h" 39 #include "components/search/search.h"
40 #include "components/search_engines/template_url_prepopulate_data.h" 40 #include "components/search_engines/template_url_prepopulate_data.h"
41 #include "components/search_engines/template_url_service.h" 41 #include "components/search_engines/template_url_service.h"
42 #include "components/variations/variations_http_header_provider.h" 42 #include "components/variations/variations_http_header_provider.h"
43 #include "grit/generated_resources.h" 43 #include "grit/components_strings.h"
44 #include "net/base/escape.h" 44 #include "net/base/escape.h"
45 #include "net/base/load_flags.h" 45 #include "net/base/load_flags.h"
46 #include "net/base/net_util.h" 46 #include "net/base/net_util.h"
47 #include "net/http/http_request_headers.h" 47 #include "net/http/http_request_headers.h"
48 #include "net/url_request/url_fetcher.h" 48 #include "net/url_request/url_fetcher.h"
49 #include "net/url_request/url_request_status.h" 49 #include "net/url_request/url_request_status.h"
50 #include "ui/base/l10n/l10n_util.h" 50 #include "ui/base/l10n/l10n_util.h"
51 #include "url/url_constants.h" 51 #include "url/url_constants.h"
52 #include "url/url_util.h" 52 #include "url/url_util.h"
53 53
(...skipping 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 last_answer_seen_.query_type = match->answer_type; 1252 last_answer_seen_.query_type = match->answer_type;
1253 } 1253 }
1254 1254
1255 void SearchProvider::DoAnswersQuery(const AutocompleteInput& input) { 1255 void SearchProvider::DoAnswersQuery(const AutocompleteInput& input) {
1256 // If the query text starts with trimmed input, this is valid prefetch data. 1256 // If the query text starts with trimmed input, this is valid prefetch data.
1257 prefetch_data_ = StartsWith(last_answer_seen_.full_query_text, 1257 prefetch_data_ = StartsWith(last_answer_seen_.full_query_text,
1258 base::CollapseWhitespace(input.text(), false), 1258 base::CollapseWhitespace(input.text(), false),
1259 false) ? 1259 false) ?
1260 last_answer_seen_ : AnswersQueryData(); 1260 last_answer_seen_ : AnswersQueryData();
1261 } 1261 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/keyword_provider.cc ('k') | components/components_strings.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698