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

Unified Diff: chrome/browser/search_engines/template_url.cc

Issue 268643002: Use the DefaultSearchManager as the exclusive authority on DSE, ignoring Web Data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments. Created 6 years, 7 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: chrome/browser/search_engines/template_url.cc
diff --git a/chrome/browser/search_engines/template_url.cc b/chrome/browser/search_engines/template_url.cc
index 874b4bbaa33bed834f6211b2bcf0b8aac9fc5ff7..e26c429a8f8b17647ad6e1bc9ec8a2c78c8288c4 100644
--- a/chrome/browser/search_engines/template_url.cc
+++ b/chrome/browser/search_engines/template_url.cc
@@ -1276,16 +1276,15 @@ void TemplateURL::EncodeSearchTerms(
NOTREACHED();
}
-void TemplateURL::CopyFrom(const TemplateURL& other) {
- if (this == &other)
+void TemplateURL::CopyFrom(const TemplateURLData& other) {
+ if (&data_ == &other)
return;
- profile_ = other.profile_;
- data_ = other.data_;
+ data_ = other;
Peter Kasting 2014/05/07 23:38:29 Eliminating the profile copy here still seems wron
url_ref_.InvalidateCachedValues();
suggestions_url_ref_.InvalidateCachedValues();
instant_url_ref_.InvalidateCachedValues();
- SetPrepopulateId(other.data_.prepopulate_id);
+ SetPrepopulateId(other.prepopulate_id);
}
void TemplateURL::SetURL(const std::string& url) {

Powered by Google App Engine
This is Rietveld 408576698