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

Unified Diff: ios/chrome/browser/passwords/credential_manager.mm

Issue 2132593002: Remove remaining calls to deprecated MessageLoop methods on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: h264_vt_encoder_unittest.cc Created 4 years, 5 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: ios/chrome/browser/passwords/credential_manager.mm
diff --git a/ios/chrome/browser/passwords/credential_manager.mm b/ios/chrome/browser/passwords/credential_manager.mm
index 8c8779f4855d3a3e730d593e59ca12d2e1c80c67..5796bd78c2edca11292974f93d47f99e0d9fc855 100644
--- a/ios/chrome/browser/passwords/credential_manager.mm
+++ b/ios/chrome/browser/passwords/credential_manager.mm
@@ -10,8 +10,8 @@
#import "base/ios/weak_nsobject.h"
#include "base/mac/bind_objc_block.h"
#include "base/memory/scoped_vector.h"
-#include "base/message_loop/message_loop.h"
#include "base/strings/sys_string_conversions.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "components/password_manager/core/browser/password_store_consumer.h"
#include "components/password_manager/core/common/credential_manager_types.h"
#include "components/password_manager/core/common/password_manager_pref_names.h"
@@ -125,7 +125,7 @@ void CredentialManager::CredentialsRequested(
// the request should fail outright and the JS Promise should be rejected
// with an appropriate error.
if (pending_request_ || !store) {
- base::MessageLoop::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
base::Bind(&CredentialManager::RejectPromise,
weak_factory_.GetWeakPtr(), request_id,
@@ -138,7 +138,7 @@ void CredentialManager::CredentialsRequested(
// without first asking the user -- and if zero-click isn't currently
// available, send back an empty credential.
if (zero_click_only && !IsZeroClickAllowed()) {
- base::MessageLoop::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::Bind(&CredentialManager::SendCredentialByID,
weak_factory_.GetWeakPtr(), request_id,
password_manager::CredentialInfo()));
« no previous file with comments | « ios/chrome/browser/infobars/infobar_container_ios.mm ('k') | ios/chrome/browser/signin/browser_state_data_remover.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698