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

Issue 1402353011: Expose a function to get the path to a DLL. (Closed)

Created:
5 years, 1 month ago by fdoray
Modified:
5 years, 1 month ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Expose a function to get the path to a DLL. We can reduce startup time by pre-reading chrome_child.dll as soon as possible. For that, we need a way to get the full path to chrome_child.dll from the browser. This CL exposes GetModulePath(), a function that returns the full path to a DLL. Also, since we don't really want to expose the MainDllLoader class to the browser, we move it to a separate file. BUG=547794 Committed: https://crrev.com/e4adea20236d1cee76f0c61798b1613e07a7f4c1 Cr-Commit-Position: refs/heads/master@{#357567}

Patch Set 1 #

Total comments: 6

Patch Set 2 : rebase #

Patch Set 3 : grt comments #3 #

Patch Set 4 : fix style #

Patch Set 5 : fix comments #

Total comments: 5

Patch Set 6 : grt comments #5 #

Total comments: 2

Patch Set 7 : fix comment #

Total comments: 2

Patch Set 8 : grt comment #15 (fix a comment) #

Total comments: 2

Patch Set 9 : grt comment #17 (pass StringPiece16 by value) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -509 lines) Patch
M chrome/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/app/chrome_exe_main_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/app/client_util.h View 1 2 1 chunk +0 lines, -72 lines 0 comments Download
M chrome/app/client_util.cc View 1 2 1 chunk +0 lines, -376 lines 0 comments Download
A + chrome/app/main_dll_loader_win.h View 1 2 3 4 5 2 chunks +7 lines, -14 lines 0 comments Download
A + chrome/app/main_dll_loader_win.cc View 1 2 3 4 5 5 chunks +13 lines, -38 lines 0 comments Download
M chrome/chrome_exe.gypi View 1 2 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/chrome_installer_util.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/installer/util/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/installer/util/module_util_win.h View 1 2 3 4 5 6 7 8 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/installer/util/module_util_win.cc View 1 2 3 4 5 6 7 8 1 chunk +67 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (5 generated)
fdoray
Could you review this CL? Thanks.
5 years, 1 month ago (2015-10-28 15:38:36 UTC) #2
grt (UTC plus 2)
https://codereview.chromium.org/1402353011/diff/1/chrome/app/client_util.cc File chrome/app/client_util.cc (right): https://codereview.chromium.org/1402353011/diff/1/chrome/app/client_util.cc#newcode40 chrome/app/client_util.cc:40: base::File file(file_path, base::File::FLAG_OPEN | base::File::FLAG_READ); nit: return base::File(...).IsValid(); also, ...
5 years, 1 month ago (2015-10-29 18:51:50 UTC) #3
fdoray
grt@: Could you take another look? Thanks. https://codereview.chromium.org/1402353011/diff/1/chrome/app/client_util.cc File chrome/app/client_util.cc (right): https://codereview.chromium.org/1402353011/diff/1/chrome/app/client_util.cc#newcode40 chrome/app/client_util.cc:40: base::File file(file_path, ...
5 years, 1 month ago (2015-10-30 14:45:45 UTC) #4
grt (UTC plus 2)
lgtm w/ a pair of nits https://codereview.chromium.org/1402353011/diff/80001/chrome/installer/util/module_util_win.h File chrome/installer/util/module_util_win.h (right): https://codereview.chromium.org/1402353011/diff/80001/chrome/installer/util/module_util_win.h#newcode15 chrome/installer/util/module_util_win.h:15: // Returns the ...
5 years, 1 month ago (2015-10-30 15:45:59 UTC) #5
grt (UTC plus 2)
https://codereview.chromium.org/1402353011/diff/80001/chrome/installer/util/module_util_win.h File chrome/installer/util/module_util_win.h (right): https://codereview.chromium.org/1402353011/diff/80001/chrome/installer/util/module_util_win.h#newcode20 chrome/installer/util/module_util_win.h:20: base::FilePath GetModulePath(const base::char16* module_name, On 2015/10/30 15:45:59, grt wrote: ...
5 years, 1 month ago (2015-10-30 15:57:58 UTC) #6
fdoray
All done. Thanks for the review. https://codereview.chromium.org/1402353011/diff/80001/chrome/installer/util/module_util_win.h File chrome/installer/util/module_util_win.h (right): https://codereview.chromium.org/1402353011/diff/80001/chrome/installer/util/module_util_win.h#newcode15 chrome/installer/util/module_util_win.h:15: // Returns the ...
5 years, 1 month ago (2015-10-30 17:22:15 UTC) #7
fdoray
+dpranke@: Could you review the BUILD.gn file?
5 years, 1 month ago (2015-10-30 17:23:40 UTC) #9
fdoray
-dpranke@, who is not an owner for chrome/BUILD.gn +jochen@: Could you review chrome/BUILD.gn? Thanks.
5 years, 1 month ago (2015-10-30 17:27:07 UTC) #10
fdoray
-dpranke@, who is not an owner for chrome/BUILD.gn +jochen@: Could you review chrome/BUILD.gn? Thanks.
5 years, 1 month ago (2015-10-30 17:27:30 UTC) #12
grt (UTC plus 2)
https://codereview.chromium.org/1402353011/diff/100001/chrome/installer/util/module_util_win.h File chrome/installer/util/module_util_win.h (right): https://codereview.chromium.org/1402353011/diff/100001/chrome/installer/util/module_util_win.h#newcode17 chrome/installer/util/module_util_win.h:17: // the current module doesn't have a version resource. ...
5 years, 1 month ago (2015-10-30 17:45:37 UTC) #13
fdoray
grt@: Done. jochen@: Could you review chrome/BUILD.gn? Thanks. https://codereview.chromium.org/1402353011/diff/100001/chrome/installer/util/module_util_win.h File chrome/installer/util/module_util_win.h (right): https://codereview.chromium.org/1402353011/diff/100001/chrome/installer/util/module_util_win.h#newcode17 chrome/installer/util/module_util_win.h:17: // ...
5 years, 1 month ago (2015-10-30 18:25:25 UTC) #14
grt (UTC plus 2)
https://codereview.chromium.org/1402353011/diff/120001/chrome/installer/util/module_util_win.h File chrome/installer/util/module_util_win.h (right): https://codereview.chromium.org/1402353011/diff/120001/chrome/installer/util/module_util_win.h#newcode16 chrome/installer/util/module_util_win.h:16: // Returns the full path to a module named ...
5 years, 1 month ago (2015-10-30 19:33:14 UTC) #15
fdoray
grt@: Done. jochen@: Could you review chrome/BUILD.gn? Thanks. https://codereview.chromium.org/1402353011/diff/120001/chrome/installer/util/module_util_win.h File chrome/installer/util/module_util_win.h (right): https://codereview.chromium.org/1402353011/diff/120001/chrome/installer/util/module_util_win.h#newcode16 chrome/installer/util/module_util_win.h:16: // ...
5 years, 1 month ago (2015-10-30 21:12:49 UTC) #16
grt (UTC plus 2)
lgtm w/ a nit https://codereview.chromium.org/1402353011/diff/140001/chrome/installer/util/module_util_win.h File chrome/installer/util/module_util_win.h (right): https://codereview.chromium.org/1402353011/diff/140001/chrome/installer/util/module_util_win.h#newcode24 chrome/installer/util/module_util_win.h:24: base::FilePath GetModulePath(const base::StringPiece16& module_name, nit: ...
5 years, 1 month ago (2015-11-02 15:33:39 UTC) #17
fdoray
grt@: Done. jochen@: Could you review chrome/BUILD.gn? Thanks. https://codereview.chromium.org/1402353011/diff/140001/chrome/installer/util/module_util_win.h File chrome/installer/util/module_util_win.h (right): https://codereview.chromium.org/1402353011/diff/140001/chrome/installer/util/module_util_win.h#newcode24 chrome/installer/util/module_util_win.h:24: base::FilePath ...
5 years, 1 month ago (2015-11-02 17:36:26 UTC) #18
jochen (gone - plz use gerrit)
lgtm
5 years, 1 month ago (2015-11-03 07:20:44 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1402353011/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1402353011/160001
5 years, 1 month ago (2015-11-03 17:41:03 UTC) #22
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 1 month ago (2015-11-03 18:27:37 UTC) #23
commit-bot: I haz the power
5 years, 1 month ago (2015-11-03 18:29:31 UTC) #24
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/e4adea20236d1cee76f0c61798b1613e07a7f4c1
Cr-Commit-Position: refs/heads/master@{#357567}

Powered by Google App Engine
This is Rietveld 408576698