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

Side by Side Diff: ui/aura/env.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 | « ui/accessibility/platform/ax_platform_node_win.cc ('k') | ui/base/clipboard/clipboard.h » ('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 (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 "ui/aura/env.h" 5 #include "ui/aura/env.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/threading/thread_local.h" 10 #include "base/threading/thread_local.h"
(...skipping 12 matching lines...) Expand all
23 23
24 #if defined(USE_OZONE) 24 #if defined(USE_OZONE)
25 #include "ui/ozone/public/ozone_platform.h" 25 #include "ui/ozone/public/ozone_platform.h"
26 #endif 26 #endif
27 27
28 namespace aura { 28 namespace aura {
29 29
30 namespace { 30 namespace {
31 31
32 // Env is thread local so that aura may be used on multiple threads. 32 // Env is thread local so that aura may be used on multiple threads.
33 base::LazyInstance<base::ThreadLocalPointer<Env> >::Leaky lazy_tls_ptr = 33 base::LazyInstance<base::ThreadLocalPointer<Env>>::Leaky lazy_tls_ptr =
34 LAZY_INSTANCE_INITIALIZER; 34 LAZY_INSTANCE_INITIALIZER;
35 35
36 // Returns true if running inside of mus. Checks for mojo specific flag. 36 // Returns true if running inside of mus. Checks for mojo specific flag.
37 bool RunningInsideMus() { 37 bool RunningInsideMus() {
38 return base::CommandLine::ForCurrentProcess()->HasSwitch( 38 return base::CommandLine::ForCurrentProcess()->HasSwitch(
39 "primordial-pipe-token"); 39 "primordial-pipe-token");
40 } 40 }
41 41
42 } // namespace 42 } // namespace
43 43
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 std::unique_ptr<ui::EventTargetIterator> Env::GetChildIterator() const { 237 std::unique_ptr<ui::EventTargetIterator> Env::GetChildIterator() const {
238 return nullptr; 238 return nullptr;
239 } 239 }
240 240
241 ui::EventTargeter* Env::GetEventTargeter() { 241 ui::EventTargeter* Env::GetEventTargeter() {
242 NOTREACHED(); 242 NOTREACHED();
243 return NULL; 243 return NULL;
244 } 244 }
245 245
246 } // namespace aura 246 } // namespace aura
OLDNEW
« no previous file with comments | « ui/accessibility/platform/ax_platform_node_win.cc ('k') | ui/base/clipboard/clipboard.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698