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

Side by Side Diff: content/public/browser/content_browser_client.cc

Issue 2637843002: Migrate base::TaskRunner from Closure to OnceClosure (Closed)
Patch Set: rebase without dcheck_in_ref_count Created 3 years, 8 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 (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 "content/public/browser/content_browser_client.h" 5 #include "content/public/browser/content_browser_client.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/guid.h" 10 #include "base/guid.h"
(...skipping 13 matching lines...) Expand all
24 namespace content { 24 namespace content {
25 25
26 BrowserMainParts* ContentBrowserClient::CreateBrowserMainParts( 26 BrowserMainParts* ContentBrowserClient::CreateBrowserMainParts(
27 const MainFunctionParams& parameters) { 27 const MainFunctionParams& parameters) {
28 return nullptr; 28 return nullptr;
29 } 29 }
30 30
31 void ContentBrowserClient::PostAfterStartupTask( 31 void ContentBrowserClient::PostAfterStartupTask(
32 const tracked_objects::Location& from_here, 32 const tracked_objects::Location& from_here,
33 const scoped_refptr<base::TaskRunner>& task_runner, 33 const scoped_refptr<base::TaskRunner>& task_runner,
34 base::Closure task) { 34 base::OnceClosure task) {
35 task_runner->PostTask(from_here, std::move(task)); 35 task_runner->PostTask(from_here, std::move(task));
36 } 36 }
37 37
38 bool ContentBrowserClient::IsBrowserStartupComplete() { 38 bool ContentBrowserClient::IsBrowserStartupComplete() {
39 return true; 39 return true;
40 } 40 }
41 41
42 WebContentsViewDelegate* ContentBrowserClient::GetWebContentsViewDelegate( 42 WebContentsViewDelegate* ContentBrowserClient::GetWebContentsViewDelegate(
43 WebContents* web_contents) { 43 WebContents* web_contents) {
44 return nullptr; 44 return nullptr;
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 450
451 bool ContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() { 451 bool ContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() {
452 return false; 452 return false;
453 } 453 }
454 454
455 bool ContentBrowserClient::RedirectNonUINonIOBrowserThreadsToTaskScheduler() { 455 bool ContentBrowserClient::RedirectNonUINonIOBrowserThreadsToTaskScheduler() {
456 return false; 456 return false;
457 } 457 }
458 458
459 } // namespace content 459 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698