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

Unified Diff: chrome/app/main_dll_loader_win.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
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/main_dll_loader_win.cc
diff --git a/chrome/app/main_dll_loader_win.cc b/chrome/app/main_dll_loader_win.cc
index 96d321377b152392433a45474cdcc7b541827a92..92fa9ef791f82180c5949d3db74c31fe91faeba8 100644
--- a/chrome/app/main_dll_loader_win.cc
+++ b/chrome/app/main_dll_loader_win.cc
@@ -62,14 +62,9 @@ HMODULE LoadModuleWithDirectory(const base::FilePath& module) {
startup_metric_utils::GetPreReadOptions();
// If enabled by the PreRead field trial, pre-read the binary to avoid a lot
- // of random IO. Don't pre-read the binary if it is chrome_child.dll and the
- // |pre_read_chrome_child_in_browser| option is enabled; the binary should
- // already have been pre-read by the browser process in that case.
- if (pre_read_options.pre_read &&
- (!pre_read_options.pre_read_chrome_child_in_browser ||
- module.BaseName().value() != installer::kChromeChildDll)) {
+ // of random IO.
+ if (pre_read_options.pre_read)
PreReadFile(module, pre_read_options);
- }
return ::LoadLibraryExW(module.value().c_str(), nullptr,
LOAD_WITH_ALTERED_SEARCH_PATH);
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698