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

Unified Diff: chrome/browser/predictors/autocomplete_action_predictor.h

Issue 10918007: Delay predictor DB access until after the first main frame load complete. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
Index: chrome/browser/predictors/autocomplete_action_predictor.h
diff --git a/chrome/browser/predictors/autocomplete_action_predictor.h b/chrome/browser/predictors/autocomplete_action_predictor.h
index ce252039705deb234c3e4d4bc222463426455ecf..3c02603003d9f95b0c8bcd7539497712e62e67bc 100644
--- a/chrome/browser/predictors/autocomplete_action_predictor.h
+++ b/chrome/browser/predictors/autocomplete_action_predictor.h
@@ -151,6 +151,11 @@ class AutocompleteActionPredictor
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
+ // The first step in initializing the predictor is accessing the database and
+ // building the local cache. This should be delayed until after critical DB
+ // and IO processes have completed.
+ void CreateLocalCachesFromDatabase();
+
// Removes all rows from the database and caches.
void DeleteAllRows();

Powered by Google App Engine
This is Rietveld 408576698