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

Unified Diff: components/history/core/browser/history_backend.cc

Issue 2292733002: Commit a new download to history db immediately on Android (Closed)
Patch Set: Created 4 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/core/browser/history_backend.cc
diff --git a/components/history/core/browser/history_backend.cc b/components/history/core/browser/history_backend.cc
index 431eb37ba7507dba003f6933a0711812f5730397..e378a97ae0cb14a39da16de5719fbc02b7fe4bbe 100644
--- a/components/history/core/browser/history_backend.cc
+++ b/components/history/core/browser/history_backend.cc
@@ -1179,7 +1179,11 @@ bool HistoryBackend::CreateDownload(const DownloadRow& history_info) {
if (!db_)
return false;
bool success = db_->CreateDownload(history_info);
+#if defined(OS_ANDROID)
+ Commit();
sky 2016/08/29 22:58:05 Please add a comment here as to why this is specia
qinmin 2016/08/30 00:08:06 Done.
+#else
ScheduleCommit();
+#endif
return success;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698