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

Side by Side Diff: chrome/browser/search_engines/template_url.cc

Issue 324283003: Move search_terms_data to components/search_engines (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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/search_engines/template_url.h" 5 #include "chrome/browser/search_engines/template_url.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/format_macros.h" 12 #include "base/format_macros.h"
13 #include "base/i18n/icu_string_conversions.h" 13 #include "base/i18n/icu_string_conversions.h"
14 #include "base/i18n/rtl.h" 14 #include "base/i18n/rtl.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/metrics/field_trial.h" 16 #include "base/metrics/field_trial.h"
17 #include "base/rand_util.h" 17 #include "base/rand_util.h"
18 #include "base/strings/string_number_conversions.h" 18 #include "base/strings/string_number_conversions.h"
19 #include "base/strings/string_split.h" 19 #include "base/strings/string_split.h"
20 #include "base/strings/string_util.h" 20 #include "base/strings/string_util.h"
21 #include "base/strings/stringprintf.h" 21 #include "base/strings/stringprintf.h"
22 #include "base/strings/utf_string_conversions.h" 22 #include "base/strings/utf_string_conversions.h"
23 #include "chrome/browser/google/google_util.h" 23 #include "chrome/browser/google/google_util.h"
24 #include "chrome/browser/search/search.h" 24 #include "chrome/browser/search/search.h"
25 #include "chrome/browser/search_engines/search_terms_data.h"
26 #include "chrome/browser/search_engines/template_url_service.h" 25 #include "chrome/browser/search_engines/template_url_service.h"
26 #include "chrome/browser/search_engines/ui_thread_search_terms_data.h"
27 #include "chrome/common/chrome_switches.h" 27 #include "chrome/common/chrome_switches.h"
28 #include "chrome/common/chrome_version_info.h" 28 #include "chrome/common/chrome_version_info.h"
29 #include "components/metrics/proto/omnibox_input_type.pb.h" 29 #include "components/metrics/proto/omnibox_input_type.pb.h"
30 #include "extensions/common/constants.h" 30 #include "extensions/common/constants.h"
31 #include "google_apis/google_api_keys.h" 31 #include "google_apis/google_api_keys.h"
32 #include "net/base/escape.h" 32 #include "net/base/escape.h"
33 #include "net/base/mime_util.h" 33 #include "net/base/mime_util.h"
34 #include "ui/base/l10n/l10n_util.h" 34 #include "ui/base/l10n/l10n_util.h"
35 35
36 namespace { 36 namespace {
(...skipping 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after
1356 // patterns. This means that given patterns 1356 // patterns. This means that given patterns
1357 // [ "http://foo/#q={searchTerms}", "http://foo/?q={searchTerms}" ], 1357 // [ "http://foo/#q={searchTerms}", "http://foo/?q={searchTerms}" ],
1358 // calling ExtractSearchTermsFromURL() on "http://foo/?q=bar#q=' would 1358 // calling ExtractSearchTermsFromURL() on "http://foo/?q=bar#q=' would
1359 // return false. This is important for at least Google, where such URLs 1359 // return false. This is important for at least Google, where such URLs
1360 // are invalid. 1360 // are invalid.
1361 return !search_terms->empty(); 1361 return !search_terms->empty();
1362 } 1362 }
1363 } 1363 }
1364 return false; 1364 return false;
1365 } 1365 }
OLDNEW
« no previous file with comments | « chrome/browser/search_engines/search_terms_data_android.cc ('k') | chrome/browser/search_engines/template_url_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698