| Index: chrome/browser/history/history_backend_android.cc
|
| diff --git a/chrome/browser/history/history_backend_android.cc b/chrome/browser/history/history_backend_android.cc
|
| index e27b8dc80298d800c472639f238bb4621581c3e5..86336036847c17f0b7f4e625ce3d9b229802e258 100644
|
| --- a/chrome/browser/history/history_backend_android.cc
|
| +++ b/chrome/browser/history/history_backend_android.cc
|
| @@ -41,36 +41,25 @@ int HistoryBackend::UpdateHistoryAndBookmarks(
|
| return count;
|
| }
|
|
|
| -void HistoryBackend::DeleteHistoryAndBookmarks(
|
| - scoped_refptr<DeleteRequest> request,
|
| +int HistoryBackend::DeleteHistoryAndBookmarks(
|
| const std::string& selection,
|
| const std::vector<base::string16>& selection_args) {
|
| - if (request->canceled())
|
| - return;
|
| -
|
| int count = 0;
|
| - bool result = false;
|
| - if (android_provider_backend_)
|
| - result = android_provider_backend_->DeleteHistoryAndBookmarks(selection,
|
| - selection_args, &count);
|
| -
|
| - request->ForwardResult(request->handle(), result, count);
|
| + if (android_provider_backend_) {
|
| + android_provider_backend_->DeleteHistoryAndBookmarks(
|
| + selection, selection_args, &count);
|
| + }
|
| + return count;
|
| }
|
|
|
| -void HistoryBackend::DeleteHistory(
|
| - scoped_refptr<DeleteRequest> request,
|
| +int HistoryBackend::DeleteHistory(
|
| const std::string& selection,
|
| const std::vector<base::string16>& selection_args) {
|
| - if (request->canceled())
|
| - return;
|
| -
|
| int count = 0;
|
| - bool result = false;
|
| if (android_provider_backend_) {
|
| - result = android_provider_backend_->DeleteHistory(selection, selection_args,
|
| - &count);
|
| + android_provider_backend_->DeleteHistory(selection, selection_args, &count);
|
| }
|
| - request->ForwardResult(request->handle(), result, count);
|
| + return count;
|
| }
|
|
|
| // Statement -------------------------------------------------------------------
|
| @@ -119,21 +108,15 @@ int HistoryBackend::UpdateSearchTerms(
|
| return count;
|
| }
|
|
|
| -void HistoryBackend::DeleteSearchTerms(
|
| - scoped_refptr<DeleteRequest> request,
|
| +int HistoryBackend::DeleteSearchTerms(
|
| const std::string& selection,
|
| const std::vector<base::string16> selection_args) {
|
| - if (request->canceled())
|
| - return;
|
| -
|
| int count = 0;
|
| - bool result = false;
|
| if (android_provider_backend_) {
|
| - result = android_provider_backend_->DeleteSearchTerms(selection,
|
| - selection_args, &count);
|
| + android_provider_backend_->DeleteSearchTerms(
|
| + selection, selection_args, &count);
|
| }
|
| -
|
| - request->ForwardResult(request->handle(), result, count);
|
| + return count;
|
| }
|
|
|
| AndroidStatement* HistoryBackend::QuerySearchTerms(
|
|
|