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

Unified Diff: chrome/app/chrome_main_delegate.cc

Issue 1431053003: Revert of Move components/startup_metric_utils/* to components/startup_metric_utils/browser/*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/chrome_exe_main_win.cc ('k') | chrome/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/chrome_main_delegate.cc
diff --git a/chrome/app/chrome_main_delegate.cc b/chrome/app/chrome_main_delegate.cc
index cb27994b8fdcd829186db4620c494a8624350bfc..b6c7bac122185d0b94c9d53b9d8d86c0fd028c67 100644
--- a/chrome/app/chrome_main_delegate.cc
+++ b/chrome/app/chrome_main_delegate.cc
@@ -40,6 +40,7 @@
#include "chrome/utility/chrome_content_utility_client.h"
#include "components/component_updater/component_updater_paths.h"
#include "components/content_settings/core/common/content_settings_pattern.h"
+#include "components/startup_metric_utils/startup_metric_utils.h"
#include "components/version_info/version_info.h"
#include "content/public/common/content_client.h"
#include "content/public/common/content_paths.h"
@@ -125,10 +126,6 @@
#include "pdf/pdf.h"
#endif
-#if !defined(CHROME_MULTIPLE_DLL_CHILD)
-#include "components/startup_metric_utils/browser/startup_metric_utils.h"
-#endif
-
#if !defined(CHROME_MULTIPLE_DLL_BROWSER)
#include "chrome/child/pdf_child_init.h"
@@ -406,8 +403,9 @@ void InitLogging(const std::string& process_type) {
}
#endif
-#if !defined(CHROME_MULTIPLE_DLL_CHILD)
-void RecordMainStartupMetrics() {
+} // namespace
+
+ChromeMainDelegate::ChromeMainDelegate() {
#if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX)
// Record the startup process creation time on supported platforms.
startup_metric_utils::RecordStartupProcessCreationTime(
@@ -423,19 +421,6 @@ void RecordMainStartupMetrics() {
startup_metric_utils::RecordMainEntryPointTime(base::Time::Now());
#endif
}
-#endif // !defined(CHROME_MULTIPLE_DLL_CHILD)
-
-} // namespace
-
-ChromeMainDelegate::ChromeMainDelegate() {
-#if !defined(CHROME_MULTIPLE_DLL_CHILD)
- // Record startup metrics in the browser process. For component builds, there
- // is no way to know the type of process (process command line is not yet
- // initialized), so the function below will also be called in renderers.
- // This doesn't matter as it simply sets global variables.
- RecordMainStartupMetrics();
-#endif // !defined(CHROME_MULTIPLE_DLL_CHILD)
-}
ChromeMainDelegate::~ChromeMainDelegate() {
}
« no previous file with comments | « chrome/app/chrome_exe_main_win.cc ('k') | chrome/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698