| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/media_galleries/scoped_mtp_device_map_entry.h" | 5 #include "chrome/browser/media_galleries/scoped_mtp_device_map_entry.h" |
| 6 | 6 |
| 7 namespace chrome { | |
| 8 | |
| 9 ScopedMTPDeviceMapEntry::ScopedMTPDeviceMapEntry( | 7 ScopedMTPDeviceMapEntry::ScopedMTPDeviceMapEntry( |
| 10 const base::FilePath::StringType& device_location, | 8 const base::FilePath::StringType& device_location, |
| 11 const base::Closure& on_destruction_callback) | 9 const base::Closure& on_destruction_callback) |
| 12 : device_location_(device_location), | 10 : device_location_(device_location), |
| 13 on_destruction_callback_(on_destruction_callback) { | 11 on_destruction_callback_(on_destruction_callback) { |
| 14 } | 12 } |
| 15 | 13 |
| 16 ScopedMTPDeviceMapEntry::~ScopedMTPDeviceMapEntry() { | 14 ScopedMTPDeviceMapEntry::~ScopedMTPDeviceMapEntry() { |
| 17 on_destruction_callback_.Run(); | 15 on_destruction_callback_.Run(); |
| 18 } | 16 } |
| 19 | |
| 20 } // namespace chrome | |
| OLD | NEW |