devicetype.h 986 B

12345678910111213141516171819202122232425262728293031
  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
  3. // found in the LICENSE file.
  4. #ifndef ASH_CONSTANTS_DEVICETYPE_H_
  5. #define ASH_CONSTANTS_DEVICETYPE_H_
  6. #include <string>
  7. #include "base/component_export.h"
  8. namespace ash {
  9. // Returns the name of current device for Bluetooth. |bluetooth_address| is
  10. // so it can be used (after hashing) to create a more identifiable device name,
  11. // e.g., "Chromebook_1A2B", "Chromebox_F9E8'.
  12. COMPONENT_EXPORT(ASH_CONSTANTS)
  13. std::string GetDeviceBluetoothName(const std::string& bluetooth_address);
  14. // Returns true if the device is Google branded.
  15. COMPONENT_EXPORT(ASH_CONSTANTS) bool IsGoogleBrandedDevice();
  16. } // namespace ash
  17. // TODO(https://crbug.com/1164001): remove after the Chrome OS source code
  18. // directory migration is finished.
  19. namespace chromeos {
  20. using ::ash::IsGoogleBrandedDevice;
  21. } // namespace chromeos
  22. #endif // ASH_CONSTANTS_DEVICETYPE_H_