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

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

Issue 1725353003: Eliminate mojo::Shell client lib class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@15connector
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
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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 #include "ui/gfx/x/x11_connection.h" 172 #include "ui/gfx/x/x11_connection.h"
173 #include "ui/gfx/x/x11_switches.h" 173 #include "ui/gfx/x/x11_switches.h"
174 #include "ui/gfx/x/x11_types.h" 174 #include "ui/gfx/x/x11_types.h"
175 #endif 175 #endif
176 176
177 #if defined(USE_NSS_CERTS) || !defined(USE_OPENSSL) 177 #if defined(USE_NSS_CERTS) || !defined(USE_OPENSSL)
178 #include "crypto/nss_util.h" 178 #include "crypto/nss_util.h"
179 #endif 179 #endif
180 180
181 #if defined(MOJO_SHELL_CLIENT) 181 #if defined(MOJO_SHELL_CLIENT)
182 #include "mojo/shell/public/cpp/connector.h"
182 #include "ui/views/mus/window_manager_connection.h" 183 #include "ui/views/mus/window_manager_connection.h"
183 #endif 184 #endif
184 185
185 // One of the linux specific headers defines this as a macro. 186 // One of the linux specific headers defines this as a macro.
186 #ifdef DestroyAll 187 #ifdef DestroyAll
187 #undef DestroyAll 188 #undef DestroyAll
188 #endif 189 #endif
189 190
190 namespace content { 191 namespace content {
191 namespace { 192 namespace {
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 created_threads_ = true; 913 created_threads_ = true;
913 return result_code_; 914 return result_code_;
914 } 915 }
915 916
916 int BrowserMainLoop::PreMainMessageLoopRun() { 917 int BrowserMainLoop::PreMainMessageLoopRun() {
917 if (IsRunningInMojoShell()) { 918 if (IsRunningInMojoShell()) {
918 MojoShellConnectionImpl::Create(); 919 MojoShellConnectionImpl::Create();
919 MojoShellConnectionImpl::Get()->BindToCommandLinePlatformChannel(); 920 MojoShellConnectionImpl::Get()->BindToCommandLinePlatformChannel();
920 #if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA) 921 #if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
921 views::WindowManagerConnection::Create( 922 views::WindowManagerConnection::Create(
922 MojoShellConnection::Get()->GetShell()); 923 MojoShellConnection::Get()->GetConnector());
923 #endif 924 #endif
924 } 925 }
925 926
926 if (parts_) { 927 if (parts_) {
927 TRACE_EVENT0("startup", 928 TRACE_EVENT0("startup",
928 "BrowserMainLoop::CreateThreads:PreMainMessageLoopRun"); 929 "BrowserMainLoop::CreateThreads:PreMainMessageLoopRun");
929 TRACK_SCOPED_REGION( 930 TRACK_SCOPED_REGION(
930 "Startup", "BrowserMainLoop::PreMainMessageLoopRun"); 931 "Startup", "BrowserMainLoop::PreMainMessageLoopRun");
931 932
932 parts_->PreMainMessageLoopRun(); 933 parts_->PreMainMessageLoopRun();
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
1466 DCHECK(is_tracing_startup_for_duration_); 1467 DCHECK(is_tracing_startup_for_duration_);
1467 1468
1468 is_tracing_startup_for_duration_ = false; 1469 is_tracing_startup_for_duration_ = false;
1469 TracingController::GetInstance()->StopTracing( 1470 TracingController::GetInstance()->StopTracing(
1470 TracingController::CreateFileSink( 1471 TracingController::CreateFileSink(
1471 startup_trace_file_, 1472 startup_trace_file_,
1472 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); 1473 base::Bind(OnStoppedStartupTracing, startup_trace_file_)));
1473 } 1474 }
1474 1475
1475 } // namespace content 1476 } // namespace content
OLDNEW
« no previous file with comments | « components/resource_provider/resource_provider_apptest.cc ('k') | content/browser/mojo/mojo_shell_client_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698