OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/win/portable_device_map_service.h" | 5 #include "chrome/browser/media_galleries/win/portable_device_map_service.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
9 #include "base/threading/thread_restrictions.h" | 9 #include "base/threading/thread_restrictions.h" |
10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
11 | 11 |
12 namespace { | 12 namespace { |
13 | 13 |
14 base::LazyInstance<PortableDeviceMapService> g_portable_device_map_service = | 14 base::LazyInstance<PortableDeviceMapService>::DestructorAtExit |
15 LAZY_INSTANCE_INITIALIZER; | 15 g_portable_device_map_service = LAZY_INSTANCE_INITIALIZER; |
16 | 16 |
17 } // namespace | 17 } // namespace |
18 | 18 |
19 // static | 19 // static |
20 PortableDeviceMapService* PortableDeviceMapService::GetInstance() { | 20 PortableDeviceMapService* PortableDeviceMapService::GetInstance() { |
21 return g_portable_device_map_service.Pointer(); | 21 return g_portable_device_map_service.Pointer(); |
22 } | 22 } |
23 | 23 |
24 void PortableDeviceMapService::AddPortableDevice( | 24 void PortableDeviceMapService::AddPortableDevice( |
25 const base::string16& device_location, | 25 const base::string16& device_location, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 } | 72 } |
73 | 73 |
74 PortableDeviceMapService::PortableDeviceInfo::~PortableDeviceInfo() { | 74 PortableDeviceMapService::PortableDeviceInfo::~PortableDeviceInfo() { |
75 } | 75 } |
76 | 76 |
77 PortableDeviceMapService::PortableDeviceMapService() { | 77 PortableDeviceMapService::PortableDeviceMapService() { |
78 } | 78 } |
79 | 79 |
80 PortableDeviceMapService::~PortableDeviceMapService() { | 80 PortableDeviceMapService::~PortableDeviceMapService() { |
81 } | 81 } |
OLD | NEW |