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

Side by Side Diff: content/utility/in_process_utility_thread.cc

Issue 2667513003: Remove some LazyInstance use in base/ (Closed)
Patch Set: no message_window Created 3 years, 10 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 "content/utility/in_process_utility_thread.h" 5 #include "content/utility/in_process_utility_thread.h"
6 6
7 #include "base/lazy_instance.h"
7 #include "base/location.h" 8 #include "base/location.h"
8 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
9 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
10 #include "content/child/child_process.h" 11 #include "content/child/child_process.h"
11 #include "content/utility/utility_thread_impl.h" 12 #include "content/utility/utility_thread_impl.h"
12 13
13 namespace content { 14 namespace content {
14 15
15 // We want to ensure there's only one utility thread running at a time, as there 16 // We want to ensure there's only one utility thread running at a time, as there
16 // are many globals used in the utility process. 17 // are many globals used in the utility process.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 child_process_.reset(new ChildProcess()); 50 child_process_.reset(new ChildProcess());
50 child_process_->set_main_thread(new UtilityThreadImpl(params_)); 51 child_process_->set_main_thread(new UtilityThreadImpl(params_));
51 } 52 }
52 53
53 base::Thread* CreateInProcessUtilityThread( 54 base::Thread* CreateInProcessUtilityThread(
54 const InProcessChildThreadParams& params) { 55 const InProcessChildThreadParams& params) {
55 return new InProcessUtilityThread(params); 56 return new InProcessUtilityThread(params);
56 } 57 }
57 58
58 } // namespace content 59 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698