summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history/history_service.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/history/history_service.cc')
-rw-r--r--chrome/browser/history/history_service.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/history/history_service.cc b/chrome/browser/history/history_service.cc
index dc28c42..aee38c8 100644
--- a/chrome/browser/history/history_service.cc
+++ b/chrome/browser/history/history_service.cc
@@ -584,6 +584,16 @@ void HistoryService::AddPagesWithDetails(const history::URLRows& info,
&HistoryBackend::AddPagesWithDetails, info, visit_source);
}
+void HistoryService::SetPageContents(const GURL& url,
+ const string16& contents) {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ if (!CanAddURL(url))
+ return;
+
+ ScheduleAndForget(PRIORITY_LOW, &HistoryBackend::SetPageContents,
+ url, contents);
+}
+
CancelableTaskTracker::TaskId HistoryService::GetFavicons(
const std::vector<GURL>& icon_urls,
int icon_types,