Chromium Code Reviews| 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; |
| } |