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

Side by Side Diff: extensions/renderer/renderer_extension_registry.cc

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again 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
« no previous file with comments | « extensions/renderer/messaging_bindings.cc ('k') | extensions/renderer/script_injection.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "extensions/renderer/renderer_extension_registry.h" 5 #include "extensions/renderer/renderer_extension_registry.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "content/public/renderer/render_thread.h" 9 #include "content/public/renderer/render_thread.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 namespace { 13 namespace {
14 14
15 base::LazyInstance<RendererExtensionRegistry> g_renderer_extension_registry = 15 base::LazyInstance<RendererExtensionRegistry>::DestructorAtExit
16 LAZY_INSTANCE_INITIALIZER; 16 g_renderer_extension_registry = LAZY_INSTANCE_INITIALIZER;
17 17
18 } // namespace 18 } // namespace
19 19
20 RendererExtensionRegistry::RendererExtensionRegistry() {} 20 RendererExtensionRegistry::RendererExtensionRegistry() {}
21 21
22 RendererExtensionRegistry::~RendererExtensionRegistry() {} 22 RendererExtensionRegistry::~RendererExtensionRegistry() {}
23 23
24 // static 24 // static
25 RendererExtensionRegistry* RendererExtensionRegistry::Get() { 25 RendererExtensionRegistry* RendererExtensionRegistry::Get() {
26 return g_renderer_extension_registry.Pointer(); 26 return g_renderer_extension_registry.Pointer();
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 return extensions_.GetIDs(); 96 return extensions_.GetIDs();
97 } 97 }
98 98
99 bool RendererExtensionRegistry::ExtensionBindingsAllowed( 99 bool RendererExtensionRegistry::ExtensionBindingsAllowed(
100 const GURL& url) const { 100 const GURL& url) const {
101 base::AutoLock lock(lock_); 101 base::AutoLock lock(lock_);
102 return extensions_.ExtensionBindingsAllowed(url); 102 return extensions_.ExtensionBindingsAllowed(url);
103 } 103 }
104 104
105 } // namespace extensions 105 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/renderer/messaging_bindings.cc ('k') | extensions/renderer/script_injection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698