Commit 0b31015d authored by Kyle Milka's avatar Kyle Milka Committed by Commit Bot

Remove Google new_tab_url in prepopulated_engines.json

When Google is the DSP we now use the local NTP built into Chrome
instead of the remote NTP specified in prepopulated_engines.json.
Remove the entry, as the loading of the local NTP is handled by
logic in chrome/browser/search/search.cc.

Bug: 583289
Change-Id: Id28db805bc53eebab6d492be666f909e0ff0b800
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1591796Reviewed-by: default avatarVasilii Sukhanov <vasilii@chromium.org>
Reviewed-by: default avatarJustin Donnelly <jdonnelly@chromium.org>
Commit-Queue: Kyle Milka <kmilka@chromium.org>
Cr-Commit-Position: refs/heads/master@{#657763}
parent 1ccce6cc
...@@ -36,7 +36,7 @@ namespace extensions { ...@@ -36,7 +36,7 @@ namespace extensions {
namespace { namespace {
#if defined(OS_WIN) || defined(OS_MACOSX) #if defined(OS_WIN) || defined(OS_MACOSX)
// Prepopulated id hardcoded in test_extension. // Prepopulated id hardcoded in test_extension.
const int kTestExtensionPrepopulatedId = 1; const int kTestExtensionPrepopulatedId = 3;
// TemplateURLData with search engines settings from test extension manifest. // TemplateURLData with search engines settings from test extension manifest.
// chrome/test/data/extensions/settings_override/manifest.json // chrome/test/data/extensions/settings_override/manifest.json
std::unique_ptr<TemplateURLData> TestExtensionSearchEngine(PrefService* prefs) { std::unique_ptr<TemplateURLData> TestExtensionSearchEngine(PrefService* prefs) {
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
"http://www.noo.__MSG_url_domain__/s?q={searchTerms}&id=__PARAM__" "http://www.noo.__MSG_url_domain__/s?q={searchTerms}&id=__PARAM__"
], ],
"encoding": "UTF-8", "encoding": "UTF-8",
"prepopulated_id": 1, "prepopulated_id": 3,
"is_default": true "is_default": true
}, },
"startup_pages": ["http://www.startup.__MSG_url_domain__/?param=__PARAM__"] "startup_pages": ["http://www.startup.__MSG_url_domain__/?param=__PARAM__"]
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
// Increment this if you change the data in ways that mean users with // Increment this if you change the data in ways that mean users with
// existing data should get a new version. Otherwise, existing data may // existing data should get a new version. Otherwise, existing data may
// continue to be used and updates made here will not always appear. // continue to be used and updates made here will not always appear.
"kCurrentDataVersion": 113 "kCurrentDataVersion": 114
}, },
// The following engines are included in country lists and are added to the // The following engines are included in country lists and are added to the
...@@ -113,7 +113,6 @@ ...@@ -113,7 +113,6 @@
"search_url": "{google:baseURL}search?q={searchTerms}&{google:RLZ}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:iOSSearchLanguage}{google:searchClient}{google:sourceId}{google:contextualSearchVersion}ie={inputEncoding}", "search_url": "{google:baseURL}search?q={searchTerms}&{google:RLZ}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:iOSSearchLanguage}{google:searchClient}{google:sourceId}{google:contextualSearchVersion}ie={inputEncoding}",
"suggest_url": "{google:baseSuggestURL}search?{google:searchFieldtrialParameter}client={google:suggestClient}&gs_ri={google:suggestRid}&xssi=t&q={searchTerms}&{google:inputType}{google:cursorPosition}{google:currentPageUrl}{google:pageClassification}{google:searchVersion}{google:sessionToken}{google:prefetchQuery}sugkey={google:suggestAPIKeyParameter}", "suggest_url": "{google:baseSuggestURL}search?{google:searchFieldtrialParameter}client={google:suggestClient}&gs_ri={google:suggestRid}&xssi=t&q={searchTerms}&{google:inputType}{google:cursorPosition}{google:currentPageUrl}{google:pageClassification}{google:searchVersion}{google:sessionToken}{google:prefetchQuery}sugkey={google:suggestAPIKeyParameter}",
"image_url": "{google:baseURL}searchbyimage/upload", "image_url": "{google:baseURL}searchbyimage/upload",
"new_tab_url": "{google:baseURL}_/chrome/newtab?{google:RLZ}ie={inputEncoding}",
"contextual_search_url": "{google:baseURL}_/contextualsearch?{google:contextualSearchVersion}{google:contextualSearchContextData}", "contextual_search_url": "{google:baseURL}_/contextualsearch?{google:contextualSearchVersion}{google:contextualSearchContextData}",
"image_url_post_params": "encoded_image={google:imageThumbnail},image_url={google:imageURL},sbisrc={google:imageSearchSource},original_width={google:imageOriginalWidth},original_height={google:imageOriginalHeight}", "image_url_post_params": "encoded_image={google:imageThumbnail},image_url={google:imageURL},sbisrc={google:imageSearchSource},original_width={google:imageOriginalWidth},original_height={google:imageOriginalHeight}",
"alternate_urls": [ "alternate_urls": [
......
...@@ -243,7 +243,6 @@ TEST_F(TemplateURLPrepopulateDataTest, ClearProvidersFromPrefs) { ...@@ -243,7 +243,6 @@ TEST_F(TemplateURLPrepopulateDataTest, ClearProvidersFromPrefs) {
EXPECT_EQ(ASCIIToUTF16("Google"), t_urls[default_index]->short_name()); EXPECT_EQ(ASCIIToUTF16("Google"), t_urls[default_index]->short_name());
EXPECT_FALSE(t_urls[default_index]->suggestions_url.empty()); EXPECT_FALSE(t_urls[default_index]->suggestions_url.empty());
EXPECT_FALSE(t_urls[default_index]->image_url.empty()); EXPECT_FALSE(t_urls[default_index]->image_url.empty());
EXPECT_FALSE(t_urls[default_index]->new_tab_url.empty());
EXPECT_FALSE(t_urls[default_index]->contextual_search_url.empty()); EXPECT_FALSE(t_urls[default_index]->contextual_search_url.empty());
EXPECT_FALSE(t_urls[default_index]->image_url_post_params.empty()); EXPECT_FALSE(t_urls[default_index]->image_url_post_params.empty());
EXPECT_EQ(SEARCH_ENGINE_GOOGLE, EXPECT_EQ(SEARCH_ENGINE_GOOGLE,
...@@ -278,7 +277,6 @@ TEST_F(TemplateURLPrepopulateDataTest, ProvidersFromPrepopulated) { ...@@ -278,7 +277,6 @@ TEST_F(TemplateURLPrepopulateDataTest, ProvidersFromPrepopulated) {
EXPECT_EQ(ASCIIToUTF16("Google"), t_urls[default_index]->short_name()); EXPECT_EQ(ASCIIToUTF16("Google"), t_urls[default_index]->short_name());
EXPECT_FALSE(t_urls[default_index]->suggestions_url.empty()); EXPECT_FALSE(t_urls[default_index]->suggestions_url.empty());
EXPECT_FALSE(t_urls[default_index]->image_url.empty()); EXPECT_FALSE(t_urls[default_index]->image_url.empty());
EXPECT_FALSE(t_urls[default_index]->new_tab_url.empty());
EXPECT_FALSE(t_urls[default_index]->contextual_search_url.empty()); EXPECT_FALSE(t_urls[default_index]->contextual_search_url.empty());
EXPECT_FALSE(t_urls[default_index]->image_url_post_params.empty()); EXPECT_FALSE(t_urls[default_index]->image_url_post_params.empty());
// Expect at least 2 alternate_urls. // Expect at least 2 alternate_urls.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment