Index: extensions/browser/api/hid/hid_apitest.cc |
diff --git a/extensions/browser/api/hid/hid_apitest.cc b/extensions/browser/api/hid/hid_apitest.cc |
index f4e6eb4179b78ed2f74b5b3361ac89cab0d40a21..a2a316d5ed45342e07aadb4117907ecede813a59 100644 |
--- a/extensions/browser/api/hid/hid_apitest.cc |
+++ b/extensions/browser/api/hid/hid_apitest.cc |
@@ -133,7 +133,17 @@ class TestDevicePermissionsPrompt |
void ShowDialog() override { prompt()->SetObserver(this); } |
- void OnDevicesChanged() override { |
+ void OnDeviceAdded(size_t index, const base::string16& device_name) override { |
+ OnDevicesChanged(); |
+ } |
+ |
+ void OnDeviceRemoved(size_t index, |
+ const base::string16& device_name) override { |
+ OnDevicesChanged(); |
+ } |
+ |
+ private: |
+ void OnDevicesChanged() { |
for (size_t i = 0; i < prompt()->GetDeviceCount(); ++i) { |
prompt()->GrantDevicePermission(i); |
if (!prompt()->multiple()) { |