| Index: chrome/browser/chrome_browser_main.cc
|
| diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
|
| index 372d0ee473b064461c7dffada6a2ed778f297df8..1550af0662d49839d96321d19350a8d9a7390118 100644
|
| --- a/chrome/browser/chrome_browser_main.cc
|
| +++ b/chrome/browser/chrome_browser_main.cc
|
| @@ -63,6 +63,7 @@
|
| #include "chrome/browser/memory/tab_manager.h"
|
| #include "chrome/browser/metrics/field_trial_synchronizer.h"
|
| #include "chrome/browser/metrics/thread_watcher.h"
|
| +#include "chrome/browser/mojo_runner_util.h"
|
| #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h"
|
| #include "chrome/browser/net/crl_set_fetcher.h"
|
| #include "chrome/browser/performance_monitor/performance_monitor.h"
|
| @@ -247,6 +248,10 @@
|
| #include "components/webusb/webusb_detector.h"
|
| #endif
|
|
|
| +#if defined(MOJO_RUNNER_CLIENT)
|
| +#include "chrome/browser/mojo_runner_state.h"
|
| +#endif
|
| +
|
| using content::BrowserThread;
|
|
|
| namespace {
|
| @@ -1212,6 +1217,11 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
|
| SCOPED_UMA_HISTOGRAM_LONG_TIMER("Startup.PreMainMessageLoopRunImplLongTime");
|
| const base::TimeTicks start_time_step1 = base::TimeTicks::Now();
|
|
|
| +#if defined(MOJO_RUNNER_CLIENT)
|
| + if (IsRunningInMojoRunner())
|
| + mojo_runner_state_.reset(new MojoRunnerState);
|
| +#endif // defined(MOJO_RUNNER_CLIENT)
|
| +
|
| #if defined(OS_WIN)
|
| // Windows parental controls calls can be slow, so we do an early init here
|
| // that calculates this value off of the UI thread.
|
|
|