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

Side by Side Diff: components/search_engines/testing_search_terms_data.cc

Issue 1224083010: Enable Answers in Suggest always. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to comment Created 5 years, 5 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
« no previous file with comments | « components/search_engines/testing_search_terms_data.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/search_engines/testing_search_terms_data.h" 5 #include "components/search_engines/testing_search_terms_data.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 8
9 TestingSearchTermsData::TestingSearchTermsData( 9 TestingSearchTermsData::TestingSearchTermsData(
10 const std::string& google_base_url) 10 const std::string& google_base_url)
11 : google_base_url_(google_base_url), 11 : google_base_url_(google_base_url),
12 enable_answers_in_suggest_(false),
13 is_showing_search_terms_on_search_results_pages_(false) { 12 is_showing_search_terms_on_search_results_pages_(false) {
14 } 13 }
15 14
16 TestingSearchTermsData::~TestingSearchTermsData() {} 15 TestingSearchTermsData::~TestingSearchTermsData() {}
17 16
18 std::string TestingSearchTermsData::GoogleBaseURLValue() const { 17 std::string TestingSearchTermsData::GoogleBaseURLValue() const {
19 return google_base_url_; 18 return google_base_url_;
20 } 19 }
21 20
22 base::string16 TestingSearchTermsData::GetRlzParameterValue( 21 base::string16 TestingSearchTermsData::GetRlzParameterValue(
23 bool from_app_list) const { 22 bool from_app_list) const {
24 return base::ASCIIToUTF16( 23 return base::ASCIIToUTF16(
25 from_app_list ? "rlz_parameter_from_app_list" : "rlz_parameter"); 24 from_app_list ? "rlz_parameter_from_app_list" : "rlz_parameter");
26 } 25 }
27 26
28 std::string TestingSearchTermsData::GetSearchClient() const { 27 std::string TestingSearchTermsData::GetSearchClient() const {
29 return search_client_; 28 return search_client_;
30 } 29 }
31 30
32 std::string TestingSearchTermsData::GoogleImageSearchSource() const { 31 std::string TestingSearchTermsData::GoogleImageSearchSource() const {
33 return "google_image_search_source"; 32 return "google_image_search_source";
34 } 33 }
35 34
36 bool TestingSearchTermsData::EnableAnswersInSuggest() const {
37 return enable_answers_in_suggest_;
38 }
39
40 bool TestingSearchTermsData::IsShowingSearchTermsOnSearchResultsPages() const { 35 bool TestingSearchTermsData::IsShowingSearchTermsOnSearchResultsPages() const {
41 return is_showing_search_terms_on_search_results_pages_; 36 return is_showing_search_terms_on_search_results_pages_;
42 } 37 }
43 38
44 int TestingSearchTermsData::OmniboxStartMargin() const { 39 int TestingSearchTermsData::OmniboxStartMargin() const {
45 return omnibox_start_margin_; 40 return omnibox_start_margin_;
46 } 41 }
OLDNEW
« no previous file with comments | « components/search_engines/testing_search_terms_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698