summaryrefslogtreecommitdiffstats
path: root/chrome/browser/safe_browsing
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/safe_browsing')
-rw-r--r--chrome/browser/safe_browsing/safe_browsing_service.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.cc b/chrome/browser/safe_browsing/safe_browsing_service.cc
index fc45b94..837c11f 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc
@@ -70,9 +70,6 @@ void SafeBrowsingService::Start() {
if (!db_thread_->Start())
return;
- db_thread_->message_loop()->PostTask(FROM_HERE, NewRunnableMethod(
- this, &SafeBrowsingService::OnDBInitialize));
-
// Retrieve client MAC keys.
PrefService* local_state = g_browser_process->local_state();
std::string client_key, wrapped_key;
@@ -86,6 +83,9 @@ void SafeBrowsingService::Start() {
io_loop_->PostTask(FROM_HERE, NewRunnableMethod(
this, &SafeBrowsingService::OnIOInitialize, MessageLoop::current(),
client_key, wrapped_key));
+
+ db_thread_->message_loop()->PostTask(FROM_HERE, NewRunnableMethod(
+ this, &SafeBrowsingService::OnDBInitialize));
}
void SafeBrowsingService::ShutDown() {