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

Side by Side Diff: components/proximity_auth/webui/proximity_auth_webui_handler.cc

Issue 2845473002: Revert of [EasyUnlock] Update BluetoothLowEnergyConnectionFinder to look for EIDs. (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « components/proximity_auth/webui/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/proximity_auth/webui/proximity_auth_webui_handler.h" 5 #include "components/proximity_auth/webui/proximity_auth_webui_handler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/base64url.h" 10 #include "base/base64url.h"
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/i18n/time_formatting.h" 12 #include "base/i18n/time_formatting.h"
13 #include "base/memory/ptr_util.h" 13 #include "base/memory/ptr_util.h"
14 #include "base/threading/thread_task_runner_handle.h" 14 #include "base/threading/thread_task_runner_handle.h"
15 #include "base/time/default_clock.h" 15 #include "base/time/default_clock.h"
16 #include "base/time/default_tick_clock.h" 16 #include "base/time/default_tick_clock.h"
17 #include "base/values.h" 17 #include "base/values.h"
18 #include "components/cryptauth/cryptauth_enrollment_manager.h" 18 #include "components/cryptauth/cryptauth_enrollment_manager.h"
19 #include "components/cryptauth/proto/cryptauth_api.pb.h" 19 #include "components/cryptauth/proto/cryptauth_api.pb.h"
20 #include "components/cryptauth/remote_device_loader.h" 20 #include "components/cryptauth/remote_device_loader.h"
21 #include "components/cryptauth/secure_context.h" 21 #include "components/cryptauth/secure_context.h"
22 #include "components/cryptauth/secure_message_delegate.h" 22 #include "components/cryptauth/secure_message_delegate.h"
23 #include "components/prefs/pref_service.h" 23 #include "components/prefs/pref_service.h"
24 #include "components/proximity_auth/ble/pref_names.h"
24 #include "components/proximity_auth/bluetooth_connection_finder.h" 25 #include "components/proximity_auth/bluetooth_connection_finder.h"
25 #include "components/proximity_auth/logging/logging.h" 26 #include "components/proximity_auth/logging/logging.h"
26 #include "components/proximity_auth/messenger.h" 27 #include "components/proximity_auth/messenger.h"
27 #include "components/proximity_auth/remote_device_life_cycle_impl.h" 28 #include "components/proximity_auth/remote_device_life_cycle_impl.h"
28 #include "components/proximity_auth/remote_status_update.h" 29 #include "components/proximity_auth/remote_status_update.h"
29 #include "components/proximity_auth/webui/reachable_phone_flow.h" 30 #include "components/proximity_auth/webui/reachable_phone_flow.h"
30 #include "content/public/browser/browser_thread.h" 31 #include "content/public/browser/browser_thread.h"
31 #include "content/public/browser/web_ui.h" 32 #include "content/public/browser/web_ui.h"
32 #include "device/bluetooth/bluetooth_uuid.h" 33 #include "device/bluetooth/bluetooth_uuid.h"
33 34
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 << "\n trust_agent_state: " 610 << "\n trust_agent_state: "
610 << static_cast<int>(status_update.trust_agent_state); 611 << static_cast<int>(status_update.trust_agent_state);
611 612
612 last_remote_status_update_.reset(new RemoteStatusUpdate(status_update)); 613 last_remote_status_update_.reset(new RemoteStatusUpdate(status_update));
613 std::unique_ptr<base::ListValue> unlock_keys = GetUnlockKeysList(); 614 std::unique_ptr<base::ListValue> unlock_keys = GetUnlockKeysList();
614 web_ui()->CallJavascriptFunctionUnsafe( 615 web_ui()->CallJavascriptFunctionUnsafe(
615 "LocalStateInterface.onUnlockKeysChanged", *unlock_keys); 616 "LocalStateInterface.onUnlockKeysChanged", *unlock_keys);
616 } 617 }
617 618
618 } // namespace proximity_auth 619 } // namespace proximity_auth
OLDNEW
« no previous file with comments | « components/proximity_auth/webui/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698