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

Unified Diff: chrome/browser/history/history_backend.cc

Issue 8370011: Now does not sync URLs that only have imported visits. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improved integration test to also test case of visiting url after sync. Created 9 years, 2 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/history/history_backend.cc
diff --git a/chrome/browser/history/history_backend.cc b/chrome/browser/history/history_backend.cc
index cc11b94b064f9ce2ea13aa8d1163a47717e23c25..45f12ef5f54d8f21d8c748a4c79a32152f3a0a58 100644
--- a/chrome/browser/history/history_backend.cc
+++ b/chrome/browser/history/history_backend.cc
@@ -1000,6 +1000,15 @@ bool HistoryBackend::RemoveVisits(const VisitVector& visits) {
return true;
}
+bool HistoryBackend::GetVisitsSource(const VisitVector& visits,
+ VisitSourceMap* sources) {
+ if (!db_.get())
+ return false;
+
+ db_->GetVisitsSource(visits, sources);
+ return true;
+}
+
bool HistoryBackend::GetURL(const GURL& url, history::URLRow* url_row) {
if (db_.get())
return db_->GetRowForURL(url, url_row) != 0;

Powered by Google App Engine
This is Rietveld 408576698