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

Unified Diff: chrome/browser/chromeos/login/version_info_updater.h

Issue 2876753003: Bootstrapping: Display Bluetooth name of CrOS device on OOBE screen. (Closed)
Patch Set: . Created 3 years, 7 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: chrome/browser/chromeos/login/version_info_updater.h
diff --git a/chrome/browser/chromeos/login/version_info_updater.h b/chrome/browser/chromeos/login/version_info_updater.h
index b41f6aabeb408ebdc13aa4cb69778498dd003b13..f74e0b739ad4a2f8bbc9f4bc7992913f0c4c5b67 100644
--- a/chrome/browser/chromeos/login/version_info_updater.h
+++ b/chrome/browser/chromeos/login/version_info_updater.h
@@ -15,6 +15,10 @@
#include "chromeos/system/version_loader.h"
#include "components/policy/core/common/cloud/cloud_policy_store.h"
+namespace device {
+class BluetoothAdapter;
+}
+
namespace chromeos {
class CrosSettings;
@@ -34,6 +38,9 @@ class VersionInfoUpdater : public policy::CloudPolicyStore::Observer {
// Called when the enterprise info notice should be updated.
virtual void OnEnterpriseInfoUpdated(const std::string& enterprise_info,
const std::string& asset_id) = 0;
+
+ // Called when the device info should be updated.
+ virtual void OnDeviceInfoUpdated(const std::string& bluetooth_name) = 0;
};
explicit VersionInfoUpdater(Delegate* delegate);
@@ -67,6 +74,12 @@ class VersionInfoUpdater : public policy::CloudPolicyStore::Observer {
// Callback from chromeos::VersionLoader giving the version.
void OnVersion(const std::string& version);
+ // Check and update device info.
+ void UpdateDeviceInfo();
+
+ // Callback from device::BluetoothAdapterFactory::GetAdapter.
+ void OnGetAdapter(scoped_refptr<device::BluetoothAdapter> adapter);
+
// Information pieces for version label.
std::string version_text_;
std::string serial_number_text_;

Powered by Google App Engine
This is Rietveld 408576698