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

Unified Diff: components/search_engines/keyword_table.cc

Issue 367023002: Componentize TemplateURLService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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
« no previous file with comments | « components/search_engines/keyword_table.h ('k') | components/search_engines/keyword_web_data_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/search_engines/keyword_table.cc
diff --git a/chrome/browser/webdata/keyword_table.cc b/components/search_engines/keyword_table.cc
similarity index 99%
rename from chrome/browser/webdata/keyword_table.cc
rename to components/search_engines/keyword_table.cc
index 22835dd8eef56b5c237cf4ea3ba132e1a0a39740..447ebfbeba81bbad79392c66f990772d6e7800f4 100644
--- a/chrome/browser/webdata/keyword_table.cc
+++ b/components/search_engines/keyword_table.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/webdata/keyword_table.h"
+#include "components/search_engines/keyword_table.h"
#include <set>
@@ -15,7 +15,7 @@
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
-#include "chrome/browser/history/history_database.h"
+#include "components/history/core/browser/url_database.h"
#include "components/search_engines/search_terms_data.h"
#include "components/search_engines/template_url.h"
#include "components/webdata/common/web_database.h"
@@ -106,12 +106,12 @@ void BindURLToStatement(const TemplateURLData& data,
s->BindString16(starting_column, data.short_name);
s->BindString16(starting_column + 1, data.keyword());
s->BindString(starting_column + 2, data.favicon_url.is_valid() ?
- history::HistoryDatabase::GURLToDatabaseURL(data.favicon_url) :
+ history::URLDatabase::GURLToDatabaseURL(data.favicon_url) :
std::string());
s->BindString(starting_column + 3, data.url());
s->BindBool(starting_column + 4, data.safe_for_autoreplace);
s->BindString(starting_column + 5, data.originating_url.is_valid() ?
- history::HistoryDatabase::GURLToDatabaseURL(data.originating_url) :
+ history::URLDatabase::GURLToDatabaseURL(data.originating_url) :
std::string());
s->BindInt64(starting_column + 6, data.date_created.ToTimeT());
s->BindInt(starting_column + 7, data.usage_count);
« no previous file with comments | « components/search_engines/keyword_table.h ('k') | components/search_engines/keyword_web_data_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698