Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: chrome/browser/media_galleries/win/portable_device_map_service.cc

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698