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

Issue 197013007: Set drive as the default download folder (Closed)

Created:
6 years, 9 months ago by kaliamoorthi
Modified:
6 years, 9 months ago
CC:
chromium-reviews, asanka, nkostylev+watch_chromium.org, benjhayden+dwatch_chromium.org, tfarina, joaodasilva+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, Andrew T Wilson (Slow)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Set drive as the default download folder This CL modifies download directory policy handler to enable drive to be set as the default download folder in chromebooks. BUG=340052 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257206

Patch Set 1 #

Patch Set 2 : Version 1 #

Total comments: 38

Patch Set 3 : Fixes most nits, unittest still incomplete #

Patch Set 4 : Finds and replaces instances of ${google_drive} with the google drive mount path #

Patch Set 5 : Fixes build errors #

Total comments: 35

Patch Set 6 : Fixes more nits #

Total comments: 16

Patch Set 7 : Fixes even more nits #

Total comments: 2

Patch Set 8 : Fixes nits on comments and variable names #

Patch Set 9 : Fixes test failure and enables a new test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+291 lines, -21 lines) Patch
M chrome/browser/chromeos/drive/file_system_util.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system_util.cc View 1 2 3 4 5 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/download/download_dir_policy_handler.h View 1 2 3 4 5 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/download/download_dir_policy_handler.cc View 1 2 3 4 5 6 7 8 2 chunks +63 lines, -3 lines 0 comments Download
M chrome/browser/download/download_dir_policy_handler_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +92 lines, -0 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list_factory.cc View 1 2 3 6 chunks +22 lines, -4 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M components/policy/core/browser/configuration_policy_handler.h View 1 2 3 4 5 2 chunks +11 lines, -1 line 0 comments Download
M components/policy/core/browser/configuration_policy_handler.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M components/policy/core/browser/configuration_policy_handler_list.h View 1 2 3 4 5 3 chunks +7 lines, -1 line 0 comments Download
M components/policy/core/browser/configuration_policy_handler_list.cc View 1 2 2 chunks +9 lines, -2 lines 0 comments Download
A components/policy/core/browser/configuration_policy_handler_parameters.h View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
M components/policy/core/browser/configuration_policy_pref_store_test.h View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M components/policy/core/browser/configuration_policy_pref_store_test.cc View 1 2 3 4 5 3 chunks +10 lines, -1 line 0 comments Download
M components/policy/resources/policy_templates.json View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/policy_strings.grdp View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
kaliamoorthi
PTAL
6 years, 9 months ago (2014-03-12 16:10:53 UTC) #1
kinaba
https://codereview.chromium.org/197013007/diff/20001/chrome/browser/download/download_dir_policy_handler.cc File chrome/browser/download/download_dir_policy_handler.cc (right): https://codereview.chromium.org/197013007/diff/20001/chrome/browser/download/download_dir_policy_handler.cc#newcode25 chrome/browser/download/download_dir_policy_handler.cc:25: const char* kPathRelativeToDriveRoot = "/root/"; nit: char => base::FilePath::CharType ...
6 years, 9 months ago (2014-03-13 03:56:50 UTC) #2
dconnelly
lgtm https://codereview.chromium.org/197013007/diff/20001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/197013007/diff/20001/components/policy/resources/policy_templates.json#newcode1042 components/policy/resources/policy_templates.json:1042: 'supported_on': ['chrome.*:11-', 'chrome_os:12-'], why 12? has this actually ...
6 years, 9 months ago (2014-03-13 08:06:29 UTC) #3
dconnelly
On 2014/03/13 08:06:29, dconnelly wrote: > lgtm To be more clear: policy_templates.json lgtm. Didn't look ...
6 years, 9 months ago (2014-03-13 08:08:14 UTC) #4
bartfab (slow)
Please extend PolicyTest.DownloadDirectory to cover this policy on Chrome OS as well. https://codereview.chromium.org/197013007/diff/20001/chrome/browser/chromeos/drive/file_system_util.h File chrome/browser/chromeos/drive/file_system_util.h ...
6 years, 9 months ago (2014-03-13 13:19:59 UTC) #5
kaliamoorthi
Hi Kazuhiro, Please give me a lgtm for file system util changes. Please let me ...
6 years, 9 months ago (2014-03-13 19:53:21 UTC) #6
kinaba
c/b/cros/drive lgtm
6 years, 9 months ago (2014-03-13 22:31:40 UTC) #7
dconnelly
On 2014/03/13 22:31:40, kinaba wrote: > c/b/cros/drive lgtm Assuming Bartosz thinks the download_dir_policy_handler changes are ...
6 years, 9 months ago (2014-03-14 12:52:05 UTC) #8
dconnelly
https://codereview.chromium.org/197013007/diff/140001/chrome/browser/download/download_dir_policy_handler_unittest.cc File chrome/browser/download/download_dir_policy_handler_unittest.cc (right): https://codereview.chromium.org/197013007/diff/140001/chrome/browser/download/download_dir_policy_handler_unittest.cc#newcode113 chrome/browser/download/download_dir_policy_handler_unittest.cc:113: #if 0 ?
6 years, 9 months ago (2014-03-14 12:53:17 UTC) #9
bartfab (slow)
https://codereview.chromium.org/197013007/diff/140001/chrome/browser/chromeos/drive/file_system_util.h File chrome/browser/chromeos/drive/file_system_util.h (right): https://codereview.chromium.org/197013007/diff/140001/chrome/browser/chromeos/drive/file_system_util.h#newcode63 chrome/browser/chromeos/drive/file_system_util.h:63: // "/special/drive-<username_hash>", when provided with the |userid_hash|. Nit: s/userid/user_id/ ...
6 years, 9 months ago (2014-03-14 13:43:44 UTC) #10
bartfab (slow)
https://codereview.chromium.org/197013007/diff/160001/chrome/browser/download/download_dir_policy_handler.cc File chrome/browser/download/download_dir_policy_handler.cc (right): https://codereview.chromium.org/197013007/diff/160001/chrome/browser/download/download_dir_policy_handler.cc#newcode72 chrome/browser/download/download_dir_policy_handler.cc:72: // TODO(kaliamoorthi): cleanup policy::path_parser and fold this code Nit: ...
6 years, 9 months ago (2014-03-14 16:16:45 UTC) #11
bartfab (slow)
Just a couple more nits. LGTM - ship it! https://codereview.chromium.org/197013007/diff/180001/chrome/browser/download/download_dir_policy_handler.cc File chrome/browser/download/download_dir_policy_handler.cc (right): https://codereview.chromium.org/197013007/diff/180001/chrome/browser/download/download_dir_policy_handler.cc#newcode100 chrome/browser/download/download_dir_policy_handler.cc:100: ...
6 years, 9 months ago (2014-03-14 16:55:40 UTC) #12
kaliamoorthi
The CQ bit was checked by kaliamoorthi@chromium.org
6 years, 9 months ago (2014-03-14 17:27:45 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaliamoorthi@chromium.org/197013007/200001
6 years, 9 months ago (2014-03-14 17:27:51 UTC) #14
kaliamoorthi
The CQ bit was checked by kaliamoorthi@chromium.org
6 years, 9 months ago (2014-03-14 17:41:48 UTC) #15
commit-bot: I haz the power
Failed to trigger a try job on mac_rel HTTP Error 400: Bad Request
6 years, 9 months ago (2014-03-14 17:45:57 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaliamoorthi@chromium.org/197013007/220001
6 years, 9 months ago (2014-03-14 17:46:25 UTC) #17
kaliamoorthi
The CQ bit was unchecked by kaliamoorthi@chromium.org
6 years, 9 months ago (2014-03-14 17:46:28 UTC) #18
kaliamoorthi
The CQ bit was checked by kaliamoorthi@chromium.org
6 years, 9 months ago (2014-03-14 17:46:40 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-14 17:48:11 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg
6 years, 9 months ago (2014-03-14 17:48:12 UTC) #21
bartfab (slow)
The CQ bit was checked by bartfab@chromium.org
6 years, 9 months ago (2014-03-14 17:50:57 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaliamoorthi@chromium.org/197013007/220001
6 years, 9 months ago (2014-03-14 17:51:48 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-14 19:28:34 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 9 months ago (2014-03-14 19:28:36 UTC) #25
bartfab (slow)
The CQ bit was checked by bartfab@chromium.org
6 years, 9 months ago (2014-03-14 19:35:23 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaliamoorthi@chromium.org/197013007/220001
6 years, 9 months ago (2014-03-14 19:37:54 UTC) #27
commit-bot: I haz the power
6 years, 9 months ago (2014-03-14 21:27:01 UTC) #28
Message was sent while issue was closed.
Change committed as 257206

Powered by Google App Engine
This is Rietveld 408576698