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

Unified Diff: components/search_engines/search_engines_test_util.cc

Issue 2682453002: Changed keywords conflicts resolution for extensions search engines. (Closed)
Patch Set: Fixed auto variable type must not deduce to a raw pointer type Created 3 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 side-by-side diff with in-line comments
Download patch
Index: components/search_engines/search_engines_test_util.cc
diff --git a/components/search_engines/search_engines_test_util.cc b/components/search_engines/search_engines_test_util.cc
index d427a009d0c846dc8a8bee31b18d2724c9856b7f..01b7d5009f100c9db2c678f05e684ced2f673ead 100644
--- a/components/search_engines/search_engines_test_util.cc
+++ b/components/search_engines/search_engines_test_util.cc
@@ -15,14 +15,13 @@
#include "testing/gtest/include/gtest/gtest.h"
std::unique_ptr<TemplateURLData> GenerateDummyTemplateURLData(
- const std::string& provider_name) {
+ const std::string& keyword) {
auto data = base::MakeUnique<TemplateURLData>();
- data->SetShortName(base::UTF8ToUTF16(provider_name + "name"));
- data->SetKeyword(base::UTF8ToUTF16(provider_name + "key"));
- data->SetURL(std::string("http://") + provider_name + "foo/{searchTerms}");
- data->suggestions_url = std::string("http://") + provider_name + "sugg";
- data->alternate_urls.push_back(std::string("http://") + provider_name +
- "foo/alt");
+ data->SetShortName(base::UTF8ToUTF16(keyword + "name"));
+ data->SetKeyword(base::UTF8ToUTF16(keyword));
+ data->SetURL(std::string("http://") + keyword + "foo/{searchTerms}");
+ data->suggestions_url = std::string("http://") + keyword + "sugg";
+ data->alternate_urls.push_back(std::string("http://") + keyword + "foo/alt");
data->favicon_url = GURL("http://icon1");
data->safe_for_autoreplace = true;
data->input_encodings = {"UTF-8", "UTF-16"};
« no previous file with comments | « components/search_engines/search_engines_test_util.h ('k') | components/search_engines/template_url_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698