Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
Remove AddKeywords for now
Browse files Browse the repository at this point in the history
fix #67

Auditor: @bridiver
  • Loading branch information
darkdh committed Oct 1, 2016
1 parent 6a428a1 commit 05c0198
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atom/browser/importer/profile_writer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,9 @@ static void BuildHostPathMap(TemplateURLService* model,
}
*/

/*
void ProfileWriter::AddKeywords(ScopedVector<TemplateURL> template_urls,
bool unique_on_host_and_path) {
/*
TemplateURLService* model =
TemplateURLServiceFactory::GetForProfile(profile_);
HostPathMap host_path_map;
Expand Down Expand Up @@ -427,7 +427,6 @@ void ProfileWriter::AddKeywords(ScopedVector<TemplateURL> template_urls,
*i = NULL; // Prevent the vector from deleting *i later.
}
}
*/
if (importer_) {
base::ListValue imported_template_urls;
for (ScopedVector<TemplateURL>::iterator i = template_urls.begin();
Expand All @@ -448,6 +447,7 @@ void ProfileWriter::AddKeywords(ScopedVector<TemplateURL> template_urls,
unique_on_host_and_path);
}
}
*/

void ProfileWriter::AddAutofillFormDataEntries(
const std::vector<autofill::AutofillEntry>& autofill_entries) {
Expand Down
2 changes: 2 additions & 0 deletions chromium_src/chrome/browser/importer/profile_writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ class ProfileWriter : public base::RefCountedThreadSafe<ProfileWriter> {
// If |unique_on_host_and_path| is true, a TemplateURL is only added if there
// is not an existing TemplateURL that has a replaceable search url with the
// same host+path combination.
/*
virtual void AddKeywords(ScopedVector<TemplateURL> template_urls,
bool unique_on_host_and_path);
*/

// Adds the imported autofill entries to the autofill database.
virtual void AddAutofillFormDataEntries(
Expand Down

0 comments on commit 05c0198

Please sign in to comment.