Delete from Sync the artificial search engines created by the omnibox extensions.
They are not synced for almost two years. However, the old entries may still reside in the server data. Now the client will remove them.
BUG=411197
Review-Url: https://codereview.chromium.org/2354413004
Cr-Commit-Position: refs/heads/master@{#423489}
diff --git a/components/search_engines/template_url.h b/components/search_engines/template_url.h
index fe4fc313..e931a0a 100644
--- a/components/search_engines/template_url.h
+++ b/components/search_engines/template_url.h
@@ -613,9 +613,6 @@
}
Type type() const { return type_; }
- // TODO(ianwen): remove set_type() once RestoreExtensionInfoIfNecessary() no
- // longer needs it.
- void set_type(Type type) { type_ = type; }
// This setter shouldn't be used except by TemplateURLService and
// TemplateURLServiceClient implementations.
@@ -757,7 +754,7 @@
TemplateURLRef contextual_search_url_ref_;
std::unique_ptr<AssociatedExtensionInfo> extension_info_;
- Type type_;
+ const Type type_;
// Caches the computed engine type across successive calls to GetEngineType().
mutable SearchEngineType engine_type_;