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

Side by Side Diff: content/browser/browser_main_loop.cc

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « content/browser/browser_context.cc ('k') | content/browser/browser_thread_impl.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) 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/browser/browser_main_loop.h" 5 #include "content/browser/browser_main_loop.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 } 575 }
576 576
577 { 577 {
578 system_stats_monitor_.reset( 578 system_stats_monitor_.reset(
579 new base::trace_event::TraceEventSystemStatsMonitor( 579 new base::trace_event::TraceEventSystemStatsMonitor(
580 base::ThreadTaskRunnerHandle::Get())); 580 base::ThreadTaskRunnerHandle::Get()));
581 } 581 }
582 582
583 { 583 {
584 base::SetRecordActionTaskRunner( 584 base::SetRecordActionTaskRunner(
585 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI)); 585 BrowserThread::GetTaskRunnerForThread(BrowserThread::UI));
586 } 586 }
587 587
588 #if defined(OS_WIN) 588 #if defined(OS_WIN)
589 if (base::win::GetVersion() >= base::win::VERSION_WIN8) 589 if (base::win::GetVersion() >= base::win::VERSION_WIN8)
590 screen_orientation_delegate_.reset(new ScreenOrientationDelegateWin()); 590 screen_orientation_delegate_.reset(new ScreenOrientationDelegateWin());
591 #endif 591 #endif
592 592
593 // TODO(boliu): kSingleProcess check is a temporary workaround for 593 // TODO(boliu): kSingleProcess check is a temporary workaround for
594 // in-process Android WebView. crbug.com/503724 tracks proper fix. 594 // in-process Android WebView. crbug.com/503724 tracks proper fix.
595 if (!parsed_command_line_.HasSwitch(switches::kSingleProcess)) { 595 if (!parsed_command_line_.HasSwitch(switches::kSingleProcess)) {
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
1504 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner = 1504 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner =
1505 audio_thread_->task_runner(); 1505 audio_thread_->task_runner();
1506 audio_manager_ = media::AudioManager::Create(std::move(audio_task_runner), 1506 audio_manager_ = media::AudioManager::Create(std::move(audio_task_runner),
1507 std::move(worker_task_runner), 1507 std::move(worker_task_runner),
1508 MediaInternals::GetInstance()); 1508 MediaInternals::GetInstance());
1509 } 1509 }
1510 CHECK(audio_manager_); 1510 CHECK(audio_manager_);
1511 } 1511 }
1512 1512
1513 } // namespace content 1513 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_context.cc ('k') | content/browser/browser_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698