Chromium Code Reviews| Index: chrome/app/android/chrome_main_delegate_android.cc |
| diff --git a/chrome/app/android/chrome_main_delegate_android.cc b/chrome/app/android/chrome_main_delegate_android.cc |
| index 6b726c6147f63599fa024b026a7a59b86540dd56..c53fe41435368f343288bece74bc205c56e1dce2 100644 |
| --- a/chrome/app/android/chrome_main_delegate_android.cc |
| +++ b/chrome/app/android/chrome_main_delegate_android.cc |
| @@ -8,6 +8,8 @@ |
| #include "base/debug/trace_event.h" |
| #include "chrome/browser/android/chrome_jni_registrar.h" |
| #include "chrome/browser/android/chrome_startup_flags.h" |
| +#include "chrome/common/android/startup_metric_utils_android.h" |
| +#include "chrome/common/startup_metric_utils.h" |
| #include "content/public/browser/browser_main_runner.h" |
| // ChromeMainDelegateAndroid is created when the library is loaded. It is always |
| @@ -36,7 +38,11 @@ int ChromeMainDelegateAndroid::RunProcess( |
| // of UI thread tasks a second request to start it can come in while the |
|
jeremy
2013/08/28 18:15:56
nit: of of
aberent
2013/08/29 11:45:13
Done.
|
| // first request is still being processed. We must keep the same |
|
jeremy
2013/08/28 18:15:56
nit: Some people have strong feelings about using
aberent
2013/08/29 11:45:13
Done.
|
| // browser runner for the second request. |
| + // Also only record the start time first time round, since this is the start |
|
jeremy
2013/08/28 18:15:56
nit: time -> time the
aberent
2013/08/29 11:45:13
Done.
|
| + // time of the application, and will be same for all requests. |
| if (!browser_runner_.get()) { |
| + base::Time startTime = chrome::android::GetMainEntryPointTime(); |
| + startup_metric_utils::RecordSavedMainEntryPointTime(startTime); |
| browser_runner_.reset(content::BrowserMainRunner::Create()); |
| } |
| return browser_runner_->Initialize(main_function_params); |