Commit 9787d1d8 authored by Marc Treib's avatar Marc Treib Committed by Commit Bot

Cleanup: Remove unused fields related to Instant from sync protocol

This removes instant_url, search_terms_replacement_key, and
instant_url_post_params from SearchEngineSpecifics.

Bug: 476079
Change-Id: Ib0bed32ba21e11cc90e44234a6c321d97a02522b
Reviewed-on: https://chromium-review.googlesource.com/785910Reviewed-by: default avatarNicolas Zea <zea@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#519726}
parent 98ab6f55
...@@ -715,15 +715,12 @@ VISIT_PROTO_FIELDS(const sync_pb::SearchEngineSpecifics& proto) { ...@@ -715,15 +715,12 @@ VISIT_PROTO_FIELDS(const sync_pb::SearchEngineSpecifics& proto) {
VISIT(suggestions_url); VISIT(suggestions_url);
VISIT(prepopulate_id); VISIT(prepopulate_id);
VISIT(autogenerate_keyword); VISIT(autogenerate_keyword);
VISIT(instant_url);
VISIT(last_modified); VISIT(last_modified);
VISIT(sync_guid); VISIT(sync_guid);
VISIT_REP(alternate_urls); VISIT_REP(alternate_urls);
VISIT(search_terms_replacement_key);
VISIT(image_url); VISIT(image_url);
VISIT(search_url_post_params); VISIT(search_url_post_params);
VISIT(suggestions_url_post_params); VISIT(suggestions_url_post_params);
VISIT(instant_url_post_params);
VISIT(image_url_post_params); VISIT(image_url_post_params);
VISIT(new_tab_url); VISIT(new_tab_url);
} }
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
// Update proto_value_conversions{.h,.cc,_unittest.cc} if you change // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change
// any fields in this file. // any fields in this file.
// Fields that are not used anymore should be marked [deprecated = true].
syntax = "proto2"; syntax = "proto2";
option optimize_for = LITE_RUNTIME; option optimize_for = LITE_RUNTIME;
...@@ -51,20 +53,17 @@ message SearchEngineSpecifics { ...@@ -51,20 +53,17 @@ message SearchEngineSpecifics {
// notion no longer exists amongst synced search engines as we do not want to // notion no longer exists amongst synced search engines as we do not want to
// sync managed search engines. // sync managed search engines.
// optional bool deprecated_created_by_policy = 14; // optional bool deprecated_created_by_policy = 14;
// The parameterized URL that is used for Instant results. optional string instant_url = 15 [deprecated = true];
optional string instant_url = 15;
// ID 16 reserved - previously used by |id|, now deprecated. // ID 16 reserved - previously used by |id|, now deprecated.
// The last time this entry was modified by a user. A UTC timestamp with units // The last time this entry was modified by a user. A UTC timestamp with units
// in microseconds. // in microseconds.
optional int64 last_modified = 17; optional int64 last_modified = 17;
// The primary identifier of this search engine entry for Sync. // The primary identifier of this search engine entry for Sync.
optional string sync_guid = 18; optional string sync_guid = 18;
// A list of URL patterns that can be used, in addition to |url| and // A list of URL patterns that can be used, in addition to |url|, to extract
// |instant_url|, to extract search terms from a URL. // search terms from a URL.
repeated string alternate_urls = 19; repeated string alternate_urls = 19;
// Parameter that, if present in a search URL, indicates that Chrome should optional string search_terms_replacement_key = 20 [deprecated = true];
// perform search terms replacement in the omnibox.
optional string search_terms_replacement_key = 20;
// The parameterized URL that provides image results according to the image // The parameterized URL that provides image results according to the image
// content or image URL provided by user. // content or image URL provided by user.
optional string image_url = 21; optional string image_url = 21;
...@@ -73,7 +72,7 @@ message SearchEngineSpecifics { ...@@ -73,7 +72,7 @@ message SearchEngineSpecifics {
// post parameters for the corresponding search URL. // post parameters for the corresponding search URL.
optional string search_url_post_params = 22; optional string search_url_post_params = 22;
optional string suggestions_url_post_params = 23; optional string suggestions_url_post_params = 23;
optional string instant_url_post_params = 24; optional string instant_url_post_params = 24 [deprecated = true];
optional string image_url_post_params = 25; optional string image_url_post_params = 25;
// The parameterized URL for a search provider specified new tab page. // The parameterized URL for a search provider specified new tab page.
......
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