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

Side by Side Diff: content/common/plugin_list.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 (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 "content/common/plugin_list.h" 5 #include "content/common/plugin_list.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/strings/string_split.h" 14 #include "base/strings/string_split.h"
15 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
16 #include "base/strings/sys_string_conversions.h" 16 #include "base/strings/sys_string_conversions.h"
17 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
18 #include "build/build_config.h" 18 #include "build/build_config.h"
19 #include "content/public/common/content_switches.h" 19 #include "content/public/common/content_switches.h"
20 #include "net/base/mime_util.h" 20 #include "net/base/mime_util.h"
21 #include "url/gurl.h" 21 #include "url/gurl.h"
22 22
23 namespace content { 23 namespace content {
24 24
25 namespace { 25 namespace {
26 26
27 base::LazyInstance<PluginList> g_singleton = LAZY_INSTANCE_INITIALIZER; 27 base::LazyInstance<PluginList>::DestructorAtExit g_singleton =
28 LAZY_INSTANCE_INITIALIZER;
28 29
29 } // namespace 30 } // namespace
30 31
31 // static 32 // static
32 PluginList* PluginList::Singleton() { 33 PluginList* PluginList::Singleton() {
33 return g_singleton.Pointer(); 34 return g_singleton.Pointer();
34 } 35 }
35 36
36 void PluginList::RefreshPlugins() { 37 void PluginList::RefreshPlugins() {
37 base::AutoLock lock(lock_); 38 base::AutoLock lock(lock_);
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 plugin_path); 298 plugin_path);
298 if (it != extra_plugin_paths_.end()) 299 if (it != extra_plugin_paths_.end())
299 extra_plugin_paths_.erase(it); 300 extra_plugin_paths_.erase(it);
300 } 301 }
301 302
302 PluginList::~PluginList() { 303 PluginList::~PluginList() {
303 } 304 }
304 305
305 306
306 } // namespace content 307 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698