From 5989f1a45c9163d59ef4009ea1d7708114744900 Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Sat, 21 Aug 2010 02:21:11 +0000 Subject: Re-land r56742 now with correct database files A new field to describe the sources of history urls(visits) is added. This field is recorded in visit_database. So far, it can tell imported, synchronized, entension added or other(mainly testing) entries from user browsed entries. In the future, history extension API may allow queries to combinate with this criterion. BUG=none TEST=Unit tests are already included. Please test the web browser with history from previous versions to make sure the migration could be done properly. Also try to import or sync some history and inspect the sources added to the visit_source table in hitory database are correct. Original review: http://codereview.chromium.org/2906004/show Patch by weili@google.com git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56971 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/extensions/extension_history_api.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/browser/extensions') diff --git a/chrome/browser/extensions/extension_history_api.cc b/chrome/browser/extensions/extension_history_api.cc index 95d3acb..3df0509 100644 --- a/chrome/browser/extensions/extension_history_api.cc +++ b/chrome/browser/extensions/extension_history_api.cc @@ -304,7 +304,7 @@ bool AddUrlHistoryFunction::RunImpl() { return false; HistoryService* hs = profile()->GetHistoryService(Profile::EXPLICIT_ACCESS); - hs->AddPage(url); + hs->AddPage(url, history::SOURCE_EXTENSION); SendResponse(true); return true; -- cgit v1.1