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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 2286903002: Remove code related to the PreReadChromeChildInBrowser field trial. (Closed)
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index adc1045e14c3a1dbb54927da2a17b6d4026c00a1..0d564fea163a665aadb60eba9069050717f32caf 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -207,7 +207,6 @@
#if defined(OS_WIN)
#include "base/trace_event/trace_event_etw_export_win.h"
#include "base/win/windows_version.h"
-#include "chrome/app/file_pre_reader_win.h"
#include "chrome/browser/chrome_browser_main_win.h"
#include "chrome/browser/component_updater/sw_reporter_installer_win.h"
#include "chrome/browser/downgrade/user_data_downgrade.h"
@@ -220,7 +219,6 @@
#include "chrome/installer/util/browser_distribution.h"
#include "chrome/installer/util/helper.h"
#include "chrome/installer/util/install_util.h"
-#include "chrome/installer/util/module_util_win.h"
#include "chrome/installer/util/shell_util.h"
#include "components/startup_metric_utils/common/pre_read_field_trial_utils_win.h"
#include "ui/base/l10n/l10n_util_win.h"
@@ -1561,18 +1559,6 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
const base::TimeTicks start_time_step1 = base::TimeTicks::Now();
#if defined(OS_WIN)
- // Pre-read chrome_child.dll.
- const startup_metric_utils::PreReadOptions pre_read_options =
- startup_metric_utils::GetPreReadOptions();
- if (pre_read_options.pre_read &&
- pre_read_options.pre_read_chrome_child_in_browser) {
- BrowserThread::PostTask(
- BrowserThread::FILE_USER_BLOCKING, FROM_HERE,
- base::Bind(&PreReadFile,
- installer::GetModulePath(installer::kChromeChildDll),
- pre_read_options));
- }
-
// Windows parental controls calls can be slow, so we do an early init here
// that calculates this value off of the UI thread.
IncognitoModePrefs::InitializePlatformParentalControls();
« no previous file with comments | « chrome/app/main_dll_loader_win.cc ('k') | components/startup_metric_utils/common/pre_read_field_trial_utils_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698