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

Issue 10390003: Make sure only the main browser process and service processes are allowed to create the profile dir… (Closed)

Created:
8 years, 7 months ago by pastarmovj
Modified:
8 years, 7 months ago
Reviewers:
cpu_(ooo_6.6-7.5)
CC:
chromium-reviews
Visibility:
Public.

Description

Make sure only the main browser process and service processes are allowed to create the profile directory. This patch lets Chrome start with profile located on a network share on Windows Vista and newer. BUG=120388 TEST=Start Chrome with --user-data-dir pointing to a network share location and try to navigate to a web page. This should not lead to a hang of the renderer. NaCl and NPAPI plugins should run fine too. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=136020

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -3 lines) Patch
M chrome/app/chrome_main_delegate.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/chrome.gyp View 1 chunk +4 lines, -0 lines 1 comment Download
M chrome/common/chrome_paths_internal.h View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/common/chrome_paths_linux.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/common/chrome_paths_mac.mm View 2 chunks +7 lines, -1 line 0 comments Download
M chrome/common/chrome_paths_win.cc View 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/common_constants.gypi View 1 chunk +1 line, -0 lines 1 comment Download

Messages

Total messages: 3 (0 generated)
pastarmovj
Hi Carlos, Do you mind rubberstamping this CL. It is basically the same code as ...
8 years, 7 months ago (2012-05-08 14:59:44 UTC) #1
cpu_(ooo_6.6-7.5)
lgtm https://chromiumcodereview.appspot.com/10390003/diff/1/chrome/chrome.gyp File chrome/chrome.gyp (right): https://chromiumcodereview.appspot.com/10390003/diff/1/chrome/chrome.gyp#newcode1061 chrome/chrome.gyp:1061: ], I don't understand this new dependency, looks ...
8 years, 7 months ago (2012-05-09 02:00:19 UTC) #2
pastarmovj
8 years, 7 months ago (2012-05-09 12:24:30 UTC) #3
Thanks for the fast review! 

For both of your questions the answer is that there are some projects which use
the chrome_common project and because i now made it require the content_switches
which for chrome is fine but for external projects is an unmet dependency I had
asked around and was adviced to only include the file that is needed without
adding more inter-project dependencies. Also the define
COMPILE_CONTENT_STATICALLY makes sure that the string constants in
content_switches are not dll-[im-ex]ported but linked statically.

The whole discussion about that can be seen here:
https://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thr...


On 2012/05/09 02:00:19, cpu wrote:
> lgtm
> 
> https://chromiumcodereview.appspot.com/10390003/diff/1/chrome/chrome.gyp
> File chrome/chrome.gyp (right):
> 
>
https://chromiumcodereview.appspot.com/10390003/diff/1/chrome/chrome.gyp#newc...
> chrome/chrome.gyp:1061: ],
> I don't understand this new dependency, looks ok but double check you want it.
> 
>
https://chromiumcodereview.appspot.com/10390003/diff/1/chrome/common_constant...
> File chrome/common_constants.gypi (right):
> 
>
https://chromiumcodereview.appspot.com/10390003/diff/1/chrome/common_constant...
> chrome/common_constants.gypi:89: 'COMPILE_CONTENT_STATICALLY',
> no idea what this does. Trust you know.

Powered by Google App Engine
This is Rietveld 408576698