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

Side by Side Diff: chrome/browser/browser_thread.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
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 "chrome/browser/browser_thread.h" 5 #include "chrome/browser/browser_thread.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/message_loop_proxy.h" 8 #include "base/message_loop_proxy.h"
9 9
10 // Friendly names for the well-known threads. 10 // Friendly names for the well-known threads.
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 } 169 }
170 } 170 }
171 171
172 return false; 172 return false;
173 } 173 }
174 174
175 // static 175 // static
176 scoped_refptr<base::MessageLoopProxy> 176 scoped_refptr<base::MessageLoopProxy>
177 BrowserThread::GetMessageLoopProxyForThread( 177 BrowserThread::GetMessageLoopProxyForThread(
178 ID identifier) { 178 ID identifier) {
179 scoped_refptr<base::MessageLoopProxy> proxy = 179 scoped_refptr<base::MessageLoopProxy> proxy(
180 new BrowserThreadMessageLoopProxy(identifier); 180 new BrowserThreadMessageLoopProxy(identifier));
181 return proxy; 181 return proxy;
182 } 182 }
183 183
184 // static 184 // static
185 bool BrowserThread::PostTaskHelper( 185 bool BrowserThread::PostTaskHelper(
186 ID identifier, 186 ID identifier,
187 const tracked_objects::Location& from_here, 187 const tracked_objects::Location& from_here,
188 Task* task, 188 Task* task,
189 int64 delay_ms, 189 int64 delay_ms,
190 bool nestable) { 190 bool nestable) {
(...skipping 22 matching lines...) Expand all
213 } 213 }
214 } else { 214 } else {
215 delete task; 215 delete task;
216 } 216 }
217 217
218 if (!guaranteed_to_outlive_target_thread) 218 if (!guaranteed_to_outlive_target_thread)
219 lock_.Release(); 219 lock_.Release();
220 220
221 return !!message_loop; 221 return !!message_loop;
222 } 222 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/browsing_data_appcache_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698