summaryrefslogtreecommitdiffstats
path: root/device
diff options
context:
space:
mode:
authordbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-19 22:45:25 +0000
committerdbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-19 22:45:25 +0000
commit13caac27a6d6751e9733ecb276029c2d9774b640 (patch)
tree3316f5058cc610fd67d2fb4aebbadcf4d5991163 /device
parent865eb546fe5b899158e031d22189323f49a05d30 (diff)
downloadchromium_src-13caac27a6d6751e9733ecb276029c2d9774b640.zip
chromium_src-13caac27a6d6751e9733ecb276029c2d9774b640.tar.gz
chromium_src-13caac27a6d6751e9733ecb276029c2d9774b640.tar.bz2
Add base:: to string16 in device/.
R=keybuk@chromium.org BUG=329295 Review URL: https://codereview.chromium.org/100683005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241959 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'device')
-rw-r--r--device/bluetooth/bluetooth_device.cc6
-rw-r--r--device/bluetooth/bluetooth_device.h4
-rw-r--r--device/bluetooth/test/mock_bluetooth_device.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/device/bluetooth/bluetooth_device.cc b/device/bluetooth/bluetooth_device.cc
index 7b6ee0d..d9ba2134 100644
--- a/device/bluetooth/bluetooth_device.cc
+++ b/device/bluetooth/bluetooth_device.cc
@@ -24,7 +24,7 @@ BluetoothDevice::BluetoothDevice() {
BluetoothDevice::~BluetoothDevice() {
}
-string16 BluetoothDevice::GetName() const {
+base::string16 BluetoothDevice::GetName() const {
std::string name = GetDeviceName();
if (!name.empty()) {
return UTF8ToUTF16(name);
@@ -33,8 +33,8 @@ string16 BluetoothDevice::GetName() const {
}
}
-string16 BluetoothDevice::GetAddressWithLocalizedDeviceTypeName() const {
- string16 address_utf16 = UTF8ToUTF16(GetAddress());
+base::string16 BluetoothDevice::GetAddressWithLocalizedDeviceTypeName() const {
+ base::string16 address_utf16 = UTF8ToUTF16(GetAddress());
BluetoothDevice::DeviceType device_type = GetDeviceType();
switch (device_type) {
case DEVICE_COMPUTER:
diff --git a/device/bluetooth/bluetooth_device.h b/device/bluetooth/bluetooth_device.h
index aaf4e93..95fe683 100644
--- a/device/bluetooth/bluetooth_device.h
+++ b/device/bluetooth/bluetooth_device.h
@@ -188,7 +188,7 @@ class BluetoothDevice {
// Returns the name of the device suitable for displaying, this may
// be a synthesized string containing the address and localized type name
// if the device has no obtained name.
- virtual string16 GetName() const;
+ virtual base::string16 GetName() const;
// Returns the type of the device, limited to those we support or are
// aware of, by decoding the bluetooth class information. The returned
@@ -369,7 +369,7 @@ class BluetoothDevice {
private:
// Returns a localized string containing the device's bluetooth address and
// a device type for display when |name_| is empty.
- string16 GetAddressWithLocalizedDeviceTypeName() const;
+ base::string16 GetAddressWithLocalizedDeviceTypeName() const;
};
} // namespace device
diff --git a/device/bluetooth/test/mock_bluetooth_device.h b/device/bluetooth/test/mock_bluetooth_device.h
index 6020579..de2907d 100644
--- a/device/bluetooth/test/mock_bluetooth_device.h
+++ b/device/bluetooth/test/mock_bluetooth_device.h
@@ -32,7 +32,7 @@ class MockBluetoothDevice : public BluetoothDevice {
MOCK_CONST_METHOD0(GetVendorID, uint16());
MOCK_CONST_METHOD0(GetProductID, uint16());
MOCK_CONST_METHOD0(GetDeviceID, uint16());
- MOCK_CONST_METHOD0(GetName, string16());
+ MOCK_CONST_METHOD0(GetName, base::string16());
MOCK_CONST_METHOD0(GetDeviceType, BluetoothDevice::DeviceType());
MOCK_CONST_METHOD0(IsPaired, bool());
MOCK_CONST_METHOD0(IsConnected, bool());