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

Issue 12277002: Make sure ShellIntegration::CommandLineArgsForLauncher respects the UserDataDir policy. (Closed)

Created:
7 years, 10 months ago by pastarmovj
Modified:
7 years, 10 months ago
CC:
chromium-reviews, sail+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Make sure ShellIntegration::CommandLineArgsForLauncher respects the UserDataDir policy. If this is not done shortcuts created will not contain the right path and will cause faulty behavior on Windows. BUG=173237 TEST=As described in the bug. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=183546

Patch Set 1 #

Patch Set 2 : Fix mac compile. #

Patch Set 3 : Rebased to ToT and transfered a fix from the original mm file. #

Total comments: 4

Patch Set 4 : Addressed comments. #

Total comments: 2

Patch Set 5 : More documentation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -76 lines) Patch
M chrome/app/chrome_main_delegate.cc View 4 chunks +2 lines, -55 lines 0 comments Download
M chrome/app/chrome_main_mac.mm View 1 2 1 chunk +0 lines, -19 lines 0 comments Download
M chrome/browser/policy/policy_path_parser.h View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/policy/policy_path_parser_linux.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/policy/policy_path_parser_mac.mm View 1 2 3 2 chunks +21 lines, -0 lines 0 comments Download
M chrome/browser/policy/policy_path_parser_win.cc View 1 2 3 3 chunks +62 lines, -2 lines 0 comments Download
M chrome/browser/shell_integration.cc View 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
pastarmovj
Hi guys, please review this CL that makes shell integration aware of the UserDataDir policy. ...
7 years, 10 months ago (2013-02-18 12:41:30 UTC) #1
cpu_(ooo_6.6-7.5)
/app/ lgtm
7 years, 10 months ago (2013-02-19 04:48:15 UTC) #2
brettw
https://codereview.chromium.org/12277002/diff/13001/chrome/browser/policy/policy_path_parser.h File chrome/browser/policy/policy_path_parser.h (right): https://codereview.chromium.org/12277002/diff/13001/chrome/browser/policy/policy_path_parser.h#newcode55 chrome/browser/policy/policy_path_parser.h:55: void CheckUserDataDirPolicy(base::FilePath* user_data_dir); The comment here doesn't explain what ...
7 years, 10 months ago (2013-02-19 04:49:52 UTC) #3
pastarmovj
Thanks for the reviews! @Brett: Addressed your comments. PTAL. https://codereview.chromium.org/12277002/diff/13001/chrome/browser/policy/policy_path_parser.h File chrome/browser/policy/policy_path_parser.h (right): https://codereview.chromium.org/12277002/diff/13001/chrome/browser/policy/policy_path_parser.h#newcode55 chrome/browser/policy/policy_path_parser.h:55: ...
7 years, 10 months ago (2013-02-19 14:09:43 UTC) #4
brettw
lgtm https://codereview.chromium.org/12277002/diff/11003/chrome/browser/policy/policy_path_parser.h File chrome/browser/policy/policy_path_parser.h (right): https://codereview.chromium.org/12277002/diff/11003/chrome/browser/policy/policy_path_parser.h#newcode55 chrome/browser/policy/policy_path_parser.h:55: // The function will fill |user_data_dir| if the ...
7 years, 10 months ago (2013-02-19 18:23:45 UTC) #5
pastarmovj
https://codereview.chromium.org/12277002/diff/11003/chrome/browser/policy/policy_path_parser.h File chrome/browser/policy/policy_path_parser.h (right): https://codereview.chromium.org/12277002/diff/11003/chrome/browser/policy/policy_path_parser.h#newcode55 chrome/browser/policy/policy_path_parser.h:55: // The function will fill |user_data_dir| if the corresponding ...
7 years, 10 months ago (2013-02-20 10:15:05 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pastarmovj@chromium.org/12277002/19001
7 years, 10 months ago (2013-02-20 10:16:58 UTC) #7
commit-bot: I haz the power
7 years, 10 months ago (2013-02-20 10:17:03 UTC) #8
Presubmit check for 12277002-19001 failed and returned exit status 1.

INFO:root:Found 7 file(s).

Running presubmit commit checks ...
Running /b/commit-queue/workdir/chromium/PRESUBMIT.py
Running /b/commit-queue/workdir/chromium/chrome/PRESUBMIT.py
Running /b/commit-queue/workdir/chromium/chrome/browser/policy/PRESUBMIT.py

** Presubmit Messages **
Your #include order seems to be broken. Send mail to
marja@chromium.org if this is not the case.
      chrome/browser/policy/policy_path_parser_win.cc:11

** Presubmit Warnings **
New code should not use wstrings.  If you are calling a cross-platform API that
accepts a wstring, fix the API.
    chrome/browser/policy/policy_path_parser_win.cc:23
    chrome/browser/policy/policy_path_parser_win.cc:25
    chrome/browser/policy/policy_path_parser_win.cc:157

Presubmit checks took 1.1s to calculate.

Was the presubmit check useful? Please send feedback & hate mail to
maruel@chromium.org!

Powered by Google App Engine
This is Rietveld 408576698