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

Unified Diff: chrome/browser/history/android/android_provider_backend.cc

Issue 11085008: [Android] Upstream content detection and ChromeBrowserProvider tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase after landing resources separately. Created 8 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/android/android_provider_backend.cc
diff --git a/chrome/browser/history/android/android_provider_backend.cc b/chrome/browser/history/android/android_provider_backend.cc
index b4a44f2e813a0195e04fee21576aecb9391c10d8..db9ec1c3245b5ccf08514bfb86fd2c7f0a21c2da 100644
--- a/chrome/browser/history/android/android_provider_backend.cc
+++ b/chrome/browser/history/android/android_provider_backend.cc
@@ -624,6 +624,9 @@ bool AndroidProviderBackend::DeleteSearchTerms(
const std::string& selection,
const std::vector<string16>& selection_args,
int * deleted_count) {
+ if (!EnsureInitializedAndUpdated())
+ return false;
+
SearchTerms rows;
if (!GetSelectedSearchTerms(selection, selection_args, &rows))
return false;

Powered by Google App Engine
This is Rietveld 408576698