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

Issue 419523006: Experimentally isolate GetOpenFileName in a utility process. (Closed)

Created:
6 years, 4 months ago by erikwright (departed)
Modified:
6 years, 4 months ago
Reviewers:
jschuh, sky
CC:
chromium-reviews, palmer
Project:
chromium
Visibility:
Public.

Description

Experimentally isolate GetOpenFileName in a utility process. GetOpenFileName can cause 3rd-party shell extensions to be loaded into the caller's process. By putting it in a separate process we protect the browser process from potential instability. BUG=73098 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289625

Patch Set 1 #

Patch Set 2 : Add comments. #

Patch Set 3 : Remove inappropriate uses of the term 'sandbox'. #

Patch Set 4 : Refactoring for testability. #

Patch Set 5 : Extract OpenFileName into pre-CL. #

Patch Set 6 : Add tests for new logic. #

Patch Set 7 : Define an experiment flag. #

Patch Set 8 : Rebase. #

Total comments: 26

Patch Set 9 : Review comments. #

Patch Set 10 : Compile fixes. #

Patch Set 11 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+615 lines, -43 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 3 3 chunks +5 lines, -0 lines 0 comments Download
A chrome/browser/chrome_select_file_dialog_factory_win.h View 1 2 3 4 5 6 7 8 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/chrome_select_file_dialog_factory_win.cc View 1 2 3 4 5 6 7 8 1 chunk +190 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_utility.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_utility_messages.h View 1 2 3 4 5 6 7 8 3 chunks +33 lines, -0 lines 0 comments Download
M chrome/utility/chrome_content_utility_client.cc View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
A chrome/utility/shell_handler_win.h View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
A chrome/utility/shell_handler_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +51 lines, -0 lines 0 comments Download
M ui/base/win/open_file_name_win.h View 1 2 3 4 5 6 7 8 2 chunks +19 lines, -0 lines 0 comments Download
M ui/base/win/open_file_name_win.cc View 1 2 3 4 5 6 7 8 2 chunks +72 lines, -0 lines 0 comments Download
M ui/base/win/open_file_name_win_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +109 lines, -10 lines 0 comments Download
M ui/shell_dialogs/select_file_dialog.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/shell_dialogs/select_file_dialog_win.h View 2 chunks +10 lines, -3 lines 0 comments Download
M ui/shell_dialogs/select_file_dialog_win.cc View 1 2 3 4 5 6 7 8 9 8 chunks +28 lines, -29 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
erikwright (departed)
sky: PTAL.
6 years, 4 months ago (2014-07-31 17:03:13 UTC) #1
sky
https://codereview.chromium.org/419523006/diff/130001/chrome/browser/chrome_select_file_dialog_factory_win.cc File chrome/browser/chrome_select_file_dialog_factory_win.cc (right): https://codereview.chromium.org/419523006/diff/130001/chrome/browser/chrome_select_file_dialog_factory_win.cc#newcode38 chrome/browser/chrome_select_file_dialog_factory_win.cc:38: const base::FilePath& directory() { return directory_; } make const. ...
6 years, 4 months ago (2014-07-31 20:47:47 UTC) #2
erikwright (departed)
sky: PTAL. https://codereview.chromium.org/419523006/diff/130001/chrome/browser/chrome_select_file_dialog_factory_win.cc File chrome/browser/chrome_select_file_dialog_factory_win.cc (right): https://codereview.chromium.org/419523006/diff/130001/chrome/browser/chrome_select_file_dialog_factory_win.cc#newcode38 chrome/browser/chrome_select_file_dialog_factory_win.cc:38: const base::FilePath& directory() { return directory_; } ...
6 years, 4 months ago (2014-08-01 13:53:16 UTC) #3
erikwright (departed)
cpalmer: PTAL for chrome_utility_messages.h.
6 years, 4 months ago (2014-08-01 13:54:41 UTC) #4
sky
LGTM
6 years, 4 months ago (2014-08-04 18:40:26 UTC) #5
erikwright (departed)
palmer: PTAL for chrome_utility_messags.h [-cpalmer, +palmer]
6 years, 4 months ago (2014-08-12 13:20:53 UTC) #6
palmer
I think jschuh of wfh might be better reviewers for this. I'm not confident I ...
6 years, 4 months ago (2014-08-12 21:40:09 UTC) #7
erikwright (departed)
jschuh: ptal for new IPC messages. These are being sent from the browser to an ...
6 years, 4 months ago (2014-08-13 17:17:23 UTC) #8
jschuh
Weird, but is it's unsandboxed <-> unsandboxed, so lgtm for ipc security.
6 years, 4 months ago (2014-08-14 15:12:33 UTC) #9
erikwright (departed)
The CQ bit was checked by erikwright@chromium.org
6 years, 4 months ago (2014-08-14 15:14:36 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/419523006/190001
6 years, 4 months ago (2014-08-14 15:15:34 UTC) #11
commit-bot: I haz the power
6 years, 4 months ago (2014-08-14 17:14:53 UTC) #12
Message was sent while issue was closed.
Committed patchset #11 (190001) as 289625

Powered by Google App Engine
This is Rietveld 408576698