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

Side by Side Diff: base/message_loop_proxy_impl.cc

Issue 4192012: Convert implicit scoped_refptr constructor calls to explicit ones, part 1 (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: fix presubmit Created 10 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | base/message_loop_unittest.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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/message_loop_proxy_impl.h" 5 #include "base/message_loop_proxy_impl.h"
6 6
7 namespace base { 7 namespace base {
8 8
9 MessageLoopProxyImpl::MessageLoopProxyImpl() 9 MessageLoopProxyImpl::MessageLoopProxyImpl()
10 : target_message_loop_(MessageLoop::current()) { 10 : target_message_loop_(MessageLoop::current()) {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 } 86 }
87 87
88 // MessageLoop::DestructionObserver implementation 88 // MessageLoop::DestructionObserver implementation
89 void MessageLoopProxyImpl::WillDestroyCurrentMessageLoop() { 89 void MessageLoopProxyImpl::WillDestroyCurrentMessageLoop() {
90 AutoLock lock(message_loop_lock_); 90 AutoLock lock(message_loop_lock_);
91 target_message_loop_ = NULL; 91 target_message_loop_ = NULL;
92 } 92 }
93 93
94 scoped_refptr<MessageLoopProxy> 94 scoped_refptr<MessageLoopProxy>
95 MessageLoopProxy::CreateForCurrentThread() { 95 MessageLoopProxy::CreateForCurrentThread() {
96 scoped_refptr<MessageLoopProxy> ret = new MessageLoopProxyImpl(); 96 scoped_refptr<MessageLoopProxy> ret(new MessageLoopProxyImpl());
97 return ret; 97 return ret;
98 } 98 }
99 99
100 } // namespace base 100 } // namespace base
101 101
OLDNEW
« no previous file with comments | « no previous file | base/message_loop_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698