|
Revise user-data-dir switch handling; avoid crashes.
Chrome needs a pre-existing or creatable user-data-dir to run.
ChromeMainDelegate::PreSandboxStartup was CHECK'ing for this.
(crashing on startup with --user-data-dir="M:\invalid")
(crashing on startup with --user-data-dir="C:\windows")
Supposedly, we had a dialog to let users choose another dir.
(I've never gotten this to work on M28-M32 stable versions)
Revise the user-data-dir code to warn on invalid paths.
(see crbug.com/318999#c18 for the warning screenshot)
Then attempt to use the default directory as a backup.
(no alternate dir selection UI, users can try again)
This should avoid many of the numerous related crashes.
BUG= 318999
TEST=Supplying an invalid --user-data-dir=<path> will warn users and attempt to use the default directory instead of silently crashing.
R=sky@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251126
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+101 lines, -254 lines) |
Patch |
 |
M |
chrome/app/chrome_main_delegate.cc
|
View
|
1
2
3
|
3 chunks |
+0 lines, -31 lines |
2 comments
|
Download
|
 |
M |
chrome/app/chromium_strings.grd
|
View
|
1
2
3
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/app/generated_resources.grd
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/app/google_chrome_strings.grd
|
View
|
1
2
3
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chrome_browser_main.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
D |
chrome/browser/ui/user_data_dir_dialog.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -22 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/user_data_dir_extractor.h
|
View
|
1
2
3
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/user_data_dir_extractor.cc
|
View
|
1
2
3
|
1 chunk |
+90 lines, -5 lines |
4 comments
|
Download
|
 |
A + |
chrome/browser/user_data_dir_extractor_browsertest.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/user_data_dir_extractor_win.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -22 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/user_data_dir_extractor_win.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -82 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/user_data_dir_extractor_win_browsertest.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -72 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser_ui.gypi
|
View
|
1
2
3
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/chrome_tests.gypi
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 17 (0 generated)
|