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

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

Issue 1793793002: Remove ShellConnection::WaitForInitialize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/BUILD.gn ('k') | content/browser/renderer_host/render_process_host_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 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 #include "content/public/browser/tracing_controller.h" 70 #include "content/public/browser/tracing_controller.h"
71 #include "content/public/common/content_switches.h" 71 #include "content/public/common/content_switches.h"
72 #include "content/public/common/main_function_params.h" 72 #include "content/public/common/main_function_params.h"
73 #include "content/public/common/result_codes.h" 73 #include "content/public/common/result_codes.h"
74 #include "device/battery/battery_status_service.h" 74 #include "device/battery/battery_status_service.h"
75 #include "ipc/mojo/scoped_ipc_support.h" 75 #include "ipc/mojo/scoped_ipc_support.h"
76 #include "media/audio/audio_manager.h" 76 #include "media/audio/audio_manager.h"
77 #include "media/base/media.h" 77 #include "media/base/media.h"
78 #include "media/base/user_input_monitor.h" 78 #include "media/base/user_input_monitor.h"
79 #include "media/midi/midi_manager.h" 79 #include "media/midi/midi_manager.h"
80 #include "mojo/edk/embedder/embedder.h"
80 #include "mojo/shell/public/cpp/shell.h" 81 #include "mojo/shell/public/cpp/shell.h"
81 #include "net/base/network_change_notifier.h" 82 #include "net/base/network_change_notifier.h"
82 #include "net/socket/client_socket_factory.h" 83 #include "net/socket/client_socket_factory.h"
83 #include "net/ssl/ssl_config_service.h" 84 #include "net/ssl/ssl_config_service.h"
84 #include "skia/ext/event_tracer_impl.h" 85 #include "skia/ext/event_tracer_impl.h"
85 #include "skia/ext/skia_memory_dump_provider.h" 86 #include "skia/ext/skia_memory_dump_provider.h"
86 #include "sql/sql_memory_dump_provider.h" 87 #include "sql/sql_memory_dump_provider.h"
87 #include "ui/base/clipboard/clipboard.h" 88 #include "ui/base/clipboard/clipboard.h"
88 89
89 #if defined(USE_AURA) || (defined(OS_MACOSX) && !defined(OS_IOS)) 90 #if defined(USE_AURA) || (defined(OS_MACOSX) && !defined(OS_IOS))
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 } 907 }
907 908
908 TRACE_EVENT_END0("startup", "BrowserMainLoop::CreateThreads:start"); 909 TRACE_EVENT_END0("startup", "BrowserMainLoop::CreateThreads:start");
909 } 910 }
910 created_threads_ = true; 911 created_threads_ = true;
911 return result_code_; 912 return result_code_;
912 } 913 }
913 914
914 int BrowserMainLoop::PreMainMessageLoopRun() { 915 int BrowserMainLoop::PreMainMessageLoopRun() {
915 if (IsRunningInMojoShell()) { 916 if (IsRunningInMojoShell()) {
917 mojo::edk::SetParentPipeHandleFromCommandLine();
916 MojoShellConnectionImpl::Create(); 918 MojoShellConnectionImpl::Create();
917 MojoShellConnectionImpl::Get()->BindToCommandLinePlatformChannel(); 919 MojoShellConnectionImpl::Get()->BindToRequestFromCommandLine();
918 #if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA) 920 #if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
919 views::WindowManagerConnection::Create( 921 if (MojoShellConnection::Get()) {
920 MojoShellConnection::Get()->GetConnector()); 922 views::WindowManagerConnection::Create(
923 MojoShellConnection::Get()->GetConnector());
924 }
921 #endif 925 #endif
922 } 926 }
923 927
924 if (parts_) { 928 if (parts_) {
925 TRACE_EVENT0("startup", 929 TRACE_EVENT0("startup",
926 "BrowserMainLoop::CreateThreads:PreMainMessageLoopRun"); 930 "BrowserMainLoop::CreateThreads:PreMainMessageLoopRun");
927 TRACK_SCOPED_REGION( 931 TRACK_SCOPED_REGION(
928 "Startup", "BrowserMainLoop::PreMainMessageLoopRun"); 932 "Startup", "BrowserMainLoop::PreMainMessageLoopRun");
929 933
930 parts_->PreMainMessageLoopRun(); 934 parts_->PreMainMessageLoopRun();
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
1466 DCHECK(is_tracing_startup_for_duration_); 1470 DCHECK(is_tracing_startup_for_duration_);
1467 1471
1468 is_tracing_startup_for_duration_ = false; 1472 is_tracing_startup_for_duration_ = false;
1469 TracingController::GetInstance()->StopTracing( 1473 TracingController::GetInstance()->StopTracing(
1470 TracingController::CreateFileSink( 1474 TracingController::CreateFileSink(
1471 startup_trace_file_, 1475 startup_trace_file_,
1472 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); 1476 base::Bind(OnStoppedStartupTracing, startup_trace_file_)));
1473 } 1477 }
1474 1478
1475 } // namespace content 1479 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698