summaryrefslogtreecommitdiffstats
path: root/chrome/browser/safe_browsing
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-17 02:35:46 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-17 02:35:46 +0000
commit2c2fb220a9a06f41d6ca0b1a5a183d15b0d2fe07 (patch)
tree3b2d3826c7ad46d4972e936b56738887bc56d19f /chrome/browser/safe_browsing
parent2d4537d50684e97458ca6d27e98e742533bb1141 (diff)
downloadchromium_src-2c2fb220a9a06f41d6ca0b1a5a183d15b0d2fe07.zip
chromium_src-2c2fb220a9a06f41d6ca0b1a5a183d15b0d2fe07.tar.gz
chromium_src-2c2fb220a9a06f41d6ca0b1a5a183d15b0d2fe07.tar.bz2
DatabaseLoadComplete now needs to be run after OnIOInitialize, so change the order of the PostTask.
BUG=5587 Review URL: http://codereview.chromium.org/14499 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7129 0039d316-1c4b-4281-b951-d872f2087c98
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() {