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

Unified Diff: components/proximity_auth/messenger_impl.cc

Issue 2560713002: Move RemoteDevice from //components/proximity_auth to //components/cryptauth so that it can be easi… (Closed)
Patch Set: Add cryptauth dependency. Created 4 years 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
« no previous file with comments | « components/proximity_auth/fake_connection.cc ('k') | components/proximity_auth/messenger_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/proximity_auth/messenger_impl.cc
diff --git a/components/proximity_auth/messenger_impl.cc b/components/proximity_auth/messenger_impl.cc
index 05169bfa23268c5acd1c2e1745ec578d47edebae..f0c9227b2c390573ab4dffab71526e486e238fe3 100644
--- a/components/proximity_auth/messenger_impl.cc
+++ b/components/proximity_auth/messenger_impl.cc
@@ -78,7 +78,8 @@ MessengerImpl::MessengerImpl(std::unique_ptr<Connection> connection,
// TODO(tengs): We need CryptAuth to report if the phone runs iOS or Android,
// rather than relying on this heuristic.
- if (connection_->remote_device().bluetooth_type == RemoteDevice::BLUETOOTH_LE)
+ if (connection_->remote_device().bluetooth_type ==
+ cryptauth::RemoteDevice::BLUETOOTH_LE)
PollScreenStateForIOS();
}
@@ -100,7 +101,7 @@ bool MessengerImpl::SupportsSignIn() const {
return (secure_context_->GetProtocolVersion() ==
SecureContext::PROTOCOL_VERSION_THREE_ONE) &&
connection_->remote_device().bluetooth_type !=
- RemoteDevice::BLUETOOTH_LE;
+ cryptauth::RemoteDevice::BLUETOOTH_LE;
}
void MessengerImpl::DispatchUnlockEvent() {
« no previous file with comments | « components/proximity_auth/fake_connection.cc ('k') | components/proximity_auth/messenger_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698