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

Unified Diff: components/search_engines/template_url.h

Issue 2354413004: Delete from Sync the artificial search engines created by the omnibox extensions. (Closed)
Patch Set: comments Created 4 years, 2 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/template_url.h
diff --git a/components/search_engines/template_url.h b/components/search_engines/template_url.h
index fe4fc31300787093619c21743e8a80d450377e61..e931a0ae6b1c7c9c7a69b9cf8c01e0507e4a1717 100644
--- a/components/search_engines/template_url.h
+++ b/components/search_engines/template_url.h
@@ -613,9 +613,6 @@ class TemplateURL {
}
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 @@ class TemplateURL {
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_;
« no previous file with comments | « chrome/browser/search_engines/template_url_service_sync_unittest.cc ('k') | components/search_engines/template_url_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698