Index: extensions/browser/api/device_permissions_prompt.cc |
diff --git a/extensions/browser/api/device_permissions_prompt.cc b/extensions/browser/api/device_permissions_prompt.cc |
index b2df4726b2591a0771d6c0f4e2c2e4efb1e0dc31..90ef28d7caf1d2cd8b843ff616a8dd62d83b9954 100644 |
--- a/extensions/browser/api/device_permissions_prompt.cc |
+++ b/extensions/browser/api/device_permissions_prompt.cc |
@@ -334,7 +334,7 @@ void DevicePermissionsPrompt::Prompt::AddCheckedDevice( |
scoped_ptr<DeviceInfo> device, |
bool allowed) { |
if (allowed) { |
- devices_.push_back(device.release()); |
+ devices_.push_back(device.Pass()); |
if (observer_) { |
observer_->OnDevicesChanged(); |
} |