diff options
Diffstat (limited to 'chrome/browser/password_manager')
4 files changed, 7 insertions, 5 deletions
diff --git a/chrome/browser/password_manager/password_store.cc b/chrome/browser/password_manager/password_store.cc index aead4fc..f348ff8 100644 --- a/chrome/browser/password_manager/password_store.cc +++ b/chrome/browser/password_manager/password_store.cc @@ -93,8 +93,8 @@ PasswordStore::GetLoginsRequest* PasswordStore::NewGetLoginsRequest( return new GetLoginsRequest(callback); } -void PasswordStore::ScheduleTask(const base::Closure& task) { - BrowserThread::PostTask(BrowserThread::DB, FROM_HERE, task); +bool PasswordStore::ScheduleTask(const base::Closure& task) { + return BrowserThread::PostTask(BrowserThread::DB, FROM_HERE, task); } void PasswordStore::ForwardLoginsResult(GetLoginsRequest* request) { diff --git a/chrome/browser/password_manager/password_store.h b/chrome/browser/password_manager/password_store.h index eaab997..9862cac 100644 --- a/chrome/browser/password_manager/password_store.h +++ b/chrome/browser/password_manager/password_store.h @@ -146,7 +146,7 @@ class PasswordStore const GetLoginsCallback& callback); // Schedule the given |task| to be run in the PasswordStore's own thread. - virtual void ScheduleTask(const base::Closure& task); + virtual bool ScheduleTask(const base::Closure& task); // These will be run in PasswordStore's own thread. // Synchronous implementation that reports usage metrics. diff --git a/chrome/browser/password_manager/password_store_mac.cc b/chrome/browser/password_manager/password_store_mac.cc index a25a944..2b23db8 100644 --- a/chrome/browser/password_manager/password_store_mac.cc +++ b/chrome/browser/password_manager/password_store_mac.cc @@ -762,10 +762,12 @@ bool PasswordStoreMac::Init() { void PasswordStoreMac::ShutdownOnUIThread() { } -void PasswordStoreMac::ScheduleTask(const base::Closure& task) { +bool PasswordStoreMac::ScheduleTask(const base::Closure& task) { if (thread_.get()) { thread_->message_loop()->PostTask(FROM_HERE, task); + return true; } + return false; } void PasswordStoreMac::ReportMetricsImpl() { diff --git a/chrome/browser/password_manager/password_store_mac.h b/chrome/browser/password_manager/password_store_mac.h index ddf19ab..6d7bd42 100644 --- a/chrome/browser/password_manager/password_store_mac.h +++ b/chrome/browser/password_manager/password_store_mac.h @@ -41,7 +41,7 @@ class PasswordStoreMac : public PasswordStore { protected: virtual ~PasswordStoreMac(); - virtual void ScheduleTask(const base::Closure& task) OVERRIDE; + virtual bool ScheduleTask(const base::Closure& task) OVERRIDE; private: virtual void ReportMetricsImpl() OVERRIDE; |