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

Issue 6973052: When the download folder does not exist, change the download folder to a user's "Downloads" (Closed)

Created:
9 years, 7 months ago by haraken1
Modified:
9 years, 4 months ago
CC:
chromium-reviews, rdsmith+dwatch_chromium.org
Visibility:
Public.

Description

When the download folder does not exist, change the download folder to a user's "Downloads" (or something depending on the platform) - Set the download folder to Foo. You can download a PDF file to Foo without being asked anything (if you do not choose "Ask where to save each file before downloading"). Then delete Foo. Now, if you try to download the PDF file, then a file chooser dialog is displayed suggesting your "Downloads" folder. - Set the download folder to Foo. Save an HTML to Bar by right-clicking and choosing "Save as ..." on the tab. If you try to save the HTML, the file chooser dialog is displayed suggesting Bar. Then delete Bar. Now, if you try to save the HTML, the file chooser dialog is displayed suggesting Foo. Then delete Foo. If you try to save the HTML, the file chooser dialog is displayed suggesting your "Downloads" folder. - Set the download folder to Foo. Observe that Foo is displayed as the download location in the preferences page. Then delete Foo and reload the preferences page. Observe that your "Downloads" folder is displayed as the download location in the preferences page. If you are opening multiple preferences pages, then this change is automatically reflected to all the preferences pages. BUG=32552 TEST=SavePageBrowserTest.SavedFolder1,SavePageBrowserTest.SavedFolder2,SavePageBrowserTest.SavedFolder3,DownloadTest.DownloadedFolder,DownloadManagerTest.StartDownload,BaseFileTest.*,DownloadFileTest.RenameFileFinal Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=91861

Patch Set 1 #

Patch Set 2 : Correct typo #

Total comments: 19

Patch Set 3 : Change "My Documents" to "Downloads" #

Patch Set 4 : Added SavePageBrowserTest.SavedDirectory #

Patch Set 5 : Correct typo #

Total comments: 26

Patch Set 6 : Added DownloadTest.DownloadedDirectory #

Patch Set 7 : Correct typo #

Total comments: 43

Patch Set 8 : Remove overloading of GetSaveInfo() and misc #

Patch Set 9 : Correct typo #

Total comments: 11

Patch Set 10 : Add SavePageTest.SavedFolder4 and DownloadTest.DownloadedFolder2 #

Total comments: 4

Patch Set 11 : Add PathServiceWrapper and DownloadUtilTest.OverridePathService #

Patch Set 12 : Remove PathServiceWrapper and add DefaultDownloadDirectory #

Total comments: 23

Patch Set 13 : Add ChooseSavableDirectory() and ScopedDefaultDownloadDirectory #

Total comments: 19

Patch Set 14 : Overrides the user's "Downloads" folder in DownloadPrefs #

Total comments: 23

Patch Set 15 : Reflected Pawel's comments #

Total comments: 7

Patch Set 16 : Remove DownloadTest.DownloadFolder2 and SavePageBrowserTest.SaveFolder4 #

Total comments: 3

Patch Set 17 : Revert DownloadManagerTest.StartDownload back to the original #

Patch Set 18 : Give up overriding #

Total comments: 2

Patch Set 19 : Correct nits #

Patch Set 20 : Just rebased #

Patch Set 21 : Rebased with the latest repository #

Patch Set 22 : Fix save_page_browsertest.cc for Windows build #

Patch Set 23 : Fixed string conversion for Windows filepath #

Patch Set 24 : Delete xxxxx.crdownload before downloading to xxxxx to the default download folder #

Patch Set 25 : Use a temporal file with a unique name in download tests #

Patch Set 26 : Use ScopedTempDir for temporarily generated test data #

Patch Set 27 : Added URLRequestMockHTTPJob.test_dir_ and URLRequestMockHTTPJob.temp_dir_ #

Total comments: 6

Patch Set 28 : Call filter->AddHostnameHandler from browser_tests #

Patch Set 29 : Redirect "http://mock.testfile.http/<random path>" to "chrome/test/data/a.htm" #

Total comments: 1

Patch Set 30 : Added FILE_PATH_LITERAL(".crdownload") #

Patch Set 31 : Removed the change in url_request_mock_http_job.h #

Total comments: 12

Patch Set 32 : Applied Pawel's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+685 lines, -138 lines) Patch
M chrome/browser/download/download_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 35 chunks +169 lines, -53 lines 0 comments Download
M chrome/browser/download/download_file_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/download/download_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 4 chunks +13 lines, -21 lines 0 comments Download
M chrome/browser/download/download_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/download/download_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/download/download_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +14 lines, -6 lines 0 comments Download
M chrome/browser/download/download_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +40 lines, -26 lines 0 comments Download
M chrome/browser/download/save_page_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 7 chunks +289 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/advanced_options_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 29 30 31 3 chunks +34 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/advanced_options_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 4 chunks +52 lines, -0 lines 0 comments Download
M content/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/download/base_file.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/base_file.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +6 lines, -4 lines 0 comments Download
M content/browser/download/save_package.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/download/save_package.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 4 chunks +14 lines, -10 lines 0 comments Download
M content/browser/tab_contents/tab_contents.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 3 chunks +16 lines, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2 chunks +15 lines, -3 lines 0 comments Download

Messages

Total messages: 98 (0 generated)
haraken1
I am trying to fix the bug 32552. Would you take a look at it? ...
9 years, 7 months ago (2011-05-13 06:31:58 UTC) #1
Paweł Hajdan Jr.
I'm not very familiar with the WebUI advanced settings thing. Please make sure to include ...
9 years, 7 months ago (2011-05-13 09:16:22 UTC) #2
Randy Smith (Not in Mondays)
A couple of high-level issues: * The bug as written advocates changing the default downloads ...
9 years, 7 months ago (2011-05-16 21:31:05 UTC) #3
haraken1
> * The bug as written advocates changing the default downloads location to > ~/Downloads, ...
9 years, 7 months ago (2011-05-17 04:29:05 UTC) #4
Paweł Hajdan Jr.
http://codereview.chromium.org/6973052/diff/2001/chrome/browser/download/download_manager.cc File chrome/browser/download/download_manager.cc (left): http://codereview.chromium.org/6973052/diff/2001/chrome/browser/download/download_manager.cc#oldcode344 chrome/browser/download/download_manager.cc:344: // TODO(phajdan.jr): only create the directory when we're sure ...
9 years, 7 months ago (2011-05-17 16:33:33 UTC) #5
Randy Smith (Not in Mondays)
Adding csilv as an OWNER and apparent contributor for reviewing advanced_options_handler.*. haraken: Could you also ...
9 years, 7 months ago (2011-05-18 19:39:52 UTC) #6
haraken1
I am very sorry for this late reply... I added SavePageBrowserTest.SavedDirectory, which checks the directory ...
9 years, 6 months ago (2011-05-30 13:40:52 UTC) #7
Paweł Hajdan Jr.
http://codereview.chromium.org/6973052/diff/15001/chrome/browser/download/download_manager.cc File chrome/browser/download/download_manager.cc (left): http://codereview.chromium.org/6973052/diff/15001/chrome/browser/download/download_manager.cc#oldcode374 chrome/browser/download/download_manager.cc:374: file_util::CreateDirectory(default_path); Please also add a test for a case ...
9 years, 6 months ago (2011-05-30 14:15:49 UTC) #8
haraken1
Thank you for the review. I added DownloadTest.DownloadedDirectory for testing the behavior when a default ...
9 years, 6 months ago (2011-05-31 12:41:31 UTC) #9
Paweł Hajdan Jr.
http://codereview.chromium.org/6973052/diff/15001/chrome/browser/download/save_package.cc File chrome/browser/download/save_package.cc (right): http://codereview.chromium.org/6973052/diff/15001/chrome/browser/download/save_package.cc#newcode1276 chrome/browser/download/save_package.cc:1276: void SavePackage::GetSaveInfo(const FilePath& website_save_dir, On 2011/05/31 12:41:31, haraken wrote: ...
9 years, 6 months ago (2011-05-31 17:15:53 UTC) #10
csilv
LGTM on advanced_options_handler.*
9 years, 6 months ago (2011-05-31 18:24:13 UTC) #11
Randy Smith (Not in Mondays)
Some duplication with Pawel's comments--I'm not liking the extra pure testing methods either, and hoping ...
9 years, 6 months ago (2011-05-31 23:03:10 UTC) #12
Paweł Hajdan Jr.
http://codereview.chromium.org/6973052/diff/20012/chrome/browser/download/save_page_browsertest.cc File chrome/browser/download/save_page_browsertest.cc (right): http://codereview.chromium.org/6973052/diff/20012/chrome/browser/download/save_page_browsertest.cc#newcode184 chrome/browser/download/save_page_browsertest.cc:184: // Delete the default folder for saving HTML. On ...
9 years, 6 months ago (2011-06-01 07:08:09 UTC) #13
haraken1
http://codereview.chromium.org/6973052/diff/15001/chrome/browser/download/save_package.cc File chrome/browser/download/save_package.cc (right): http://codereview.chromium.org/6973052/diff/15001/chrome/browser/download/save_package.cc#newcode1276 chrome/browser/download/save_package.cc:1276: void SavePackage::GetSaveInfo(const FilePath& website_save_dir, On 2011/05/31 17:15:53, Paweł Hajdan ...
9 years, 6 months ago (2011-06-02 09:13:22 UTC) #14
Randy Smith (Not in Mondays)
http://codereview.chromium.org/6973052/diff/15001/chrome/browser/download/save_page_browsertest.cc File chrome/browser/download/save_page_browsertest.cc (right): http://codereview.chromium.org/6973052/diff/15001/chrome/browser/download/save_page_browsertest.cc#newcode173 chrome/browser/download/save_page_browsertest.cc:173: PathService::Override(chrome::DIR_DEFAULT_DOWNLOADS, default_save_dir); On 2011/05/31 17:15:53, Paweł Hajdan Jr. wrote: ...
9 years, 6 months ago (2011-06-02 19:13:57 UTC) #15
Paweł Hajdan Jr.
http://codereview.chromium.org/6973052/diff/15001/chrome/browser/download/save_page_browsertest.cc File chrome/browser/download/save_page_browsertest.cc (right): http://codereview.chromium.org/6973052/diff/15001/chrome/browser/download/save_page_browsertest.cc#newcode173 chrome/browser/download/save_page_browsertest.cc:173: PathService::Override(chrome::DIR_DEFAULT_DOWNLOADS, default_save_dir); On 2011/06/02 19:13:57, rdsmith wrote: > On ...
9 years, 6 months ago (2011-06-02 19:31:18 UTC) #16
Randy Smith (Not in Mondays)
On 2011/06/02 19:31:18, Paweł Hajdan Jr. wrote: > http://codereview.chromium.org/6973052/diff/15001/chrome/browser/download/save_page_browsertest.cc > File chrome/browser/download/save_page_browsertest.cc (right): > > ...
9 years, 6 months ago (2011-06-02 19:36:17 UTC) #17
haraken1
> If I understand the code correctly, there's what's in the user preferences, and > ...
9 years, 6 months ago (2011-06-03 06:50:26 UTC) #18
Paweł Hajdan Jr.
We should really avoid modifying PathService. If there are fallbacks on the directories both ways, ...
9 years, 6 months ago (2011-06-03 09:12:47 UTC) #19
Randy Smith (Not in Mondays)
On 2011/06/03 09:12:47, Paweł Hajdan Jr. wrote: > We should really avoid modifying PathService. If ...
9 years, 6 months ago (2011-06-03 16:21:02 UTC) #20
Paweł Hajdan Jr.
On 2011/06/03 16:21:02, rdsmith wrote: > What's wrong with using Override and then deleting the ...
9 years, 6 months ago (2011-06-03 17:44:27 UTC) #21
Randy Smith (Not in Mondays)
Makes sense. I withdraw my question. On 2011/06/03 17:44:27, Paweł Hajdan Jr. wrote: > On ...
9 years, 6 months ago (2011-06-03 21:13:40 UTC) #22
haraken1
I am not sure where we should add the indirection layer for PathService, but I ...
9 years, 6 months ago (2011-06-06 04:48:24 UTC) #23
Randy Smith (Not in Mondays)
Publishing comments on PS10; will take a look at PS11 soon and publish comments no ...
9 years, 6 months ago (2011-06-06 15:31:29 UTC) #24
Randy Smith (Not in Mondays)
I'd suggest using download_util.cc GetDefaultDownloadsDirectory and finding a way to override it. Make sure to ...
9 years, 6 months ago (2011-06-06 15:44:18 UTC) #25
haraken1
> I'd suggest using download_util.cc GetDefaultDownloadsDirectory and finding a > way to override it. Make ...
9 years, 6 months ago (2011-06-08 04:12:07 UTC) #26
Paweł Hajdan Jr.
http://codereview.chromium.org/6973052/diff/42001/base/path_service.h File base/path_service.h (right): http://codereview.chromium.org/6973052/diff/42001/base/path_service.h#newcode33 base/path_service.h:33: static void Set(int key, const FilePath& path); Please remove ...
9 years, 6 months ago (2011-06-08 09:50:22 UTC) #27
Randy Smith (Not in Mondays)
http://codereview.chromium.org/6973052/diff/42001/chrome/browser/download/download_browsertest.cc File chrome/browser/download/download_browsertest.cc (right): http://codereview.chromium.org/6973052/diff/42001/chrome/browser/download/download_browsertest.cc#newcode551 chrome/browser/download/download_browsertest.cc:551: void DownloadAndWaitWithoutDialog(Browser* browser, const GURL& url) { I think ...
9 years, 6 months ago (2011-06-08 22:31:18 UTC) #28
Paweł Hajdan Jr.
http://codereview.chromium.org/6973052/diff/42001/chrome/browser/download/download_util.cc File chrome/browser/download/download_util.cc (left): http://codereview.chromium.org/6973052/diff/42001/chrome/browser/download/download_util.cc#oldcode212 chrome/browser/download/download_util.cc:212: NOTREACHED(); On 2011/06/08 22:31:18, rdsmith wrote: > This may ...
9 years, 6 months ago (2011-06-09 09:07:44 UTC) #29
haraken1
http://codereview.chromium.org/6973052/diff/42001/base/path_service.h File base/path_service.h (right): http://codereview.chromium.org/6973052/diff/42001/base/path_service.h#newcode33 base/path_service.h:33: static void Set(int key, const FilePath& path); On 2011/06/08 ...
9 years, 6 months ago (2011-06-09 10:16:55 UTC) #30
Paweł Hajdan Jr.
I'm sorry if some of my comments or ideas are still unclear. We can schedule ...
9 years, 6 months ago (2011-06-09 19:10:38 UTC) #31
Randy Smith (Not in Mondays)
Getting closer. Sorry this is taking so long, haraken .... http://codereview.chromium.org/6973052/diff/42001/chrome/browser/download/download_util.cc File chrome/browser/download/download_util.cc (right): http://codereview.chromium.org/6973052/diff/42001/chrome/browser/download/download_util.cc#newcode221 ...
9 years, 6 months ago (2011-06-10 20:58:53 UTC) #32
haraken1
Thank you very much for the long discussion. I am learning much from this review. ...
9 years, 6 months ago (2011-06-14 11:10:05 UTC) #33
haraken1
> (I feel that this patch becomes too large... So if possible, I would like ...
9 years, 6 months ago (2011-06-15 04:37:28 UTC) #34
Paweł Hajdan Jr.
http://codereview.chromium.org/6973052/diff/60001/chrome/browser/download/base_file.cc File chrome/browser/download/base_file.cc (right): http://codereview.chromium.org/6973052/diff/60001/chrome/browser/download/base_file.cc#newcode59 chrome/browser/download/base_file.cc:59: if (!file_util::CreateTemporaryFileInDir(save_path, &full_path_)) nit: Instead of having a nested ...
9 years, 6 months ago (2011-06-15 09:31:33 UTC) #35
haraken1
I wrote: > http://codereview.chromium.org/6973052/diff/60001/chrome/browser/download/save_page_browsertest.cc > File chrome/browser/download/save_page_browsertest.cc (right): > > http://codereview.chromium.org/6973052/diff/60001/chrome/browser/download/save_page_browsertest.cc#newcode393 > chrome/browser/download/save_page_browsertest.cc:393: > IN_PROC_BROWSER_TEST_F(SavePageBrowserTest, ...
9 years, 6 months ago (2011-06-15 10:39:45 UTC) #36
Randy Smith (Not in Mondays)
High level comment: I'm struggling with the effects of putting in the shim rather than ...
9 years, 6 months ago (2011-06-15 19:48:58 UTC) #37
Paweł Hajdan Jr.
Randy: I think you're right about the added complexity for testing. I think we should ...
9 years, 6 months ago (2011-06-16 17:41:31 UTC) #38
Randy Smith (Not in Mondays)
On 2011/06/16 17:41:31, Paweł Hajdan Jr. wrote: > Randy: I think you're right about the ...
9 years, 6 months ago (2011-06-16 18:11:00 UTC) #39
Paweł Hajdan Jr.
On 2011/06/16 18:11:00, rdsmith wrote: > The complexity in the current code is mostly getting ...
9 years, 6 months ago (2011-06-17 17:56:22 UTC) #40
haraken1
Randy wrote: > High level comment: I'm struggling with the effects of putting in the ...
9 years, 6 months ago (2011-06-22 18:01:58 UTC) #41
Randy Smith (Not in Mondays)
Wow, this is turning into complex work based on a simple idea. To answer your ...
9 years, 6 months ago (2011-06-23 20:24:42 UTC) #42
haraken1
> * You understood my ideas correctly, and I hadn't thought about the UI > ...
9 years, 6 months ago (2011-06-24 01:57:24 UTC) #43
Randy Smith (Not in Mondays)
On 2011/06/24 01:57:24, haraken wrote: > > * You understood my ideas correctly, and I ...
9 years, 6 months ago (2011-06-24 18:02:05 UTC) #44
haraken1
I removed the codes about overriding the user's "Downloads" folder. Would you please take a ...
9 years, 5 months ago (2011-06-28 13:15:44 UTC) #45
Randy Smith (Not in Mondays)
I think this is good; LGTM. Pawel? http://codereview.chromium.org/6973052/diff/93001/chrome/browser/download/download_browsertest.cc File chrome/browser/download/download_browsertest.cc (right): http://codereview.chromium.org/6973052/diff/93001/chrome/browser/download/download_browsertest.cc#newcode960 chrome/browser/download/download_browsertest.cc:960: // Download ...
9 years, 5 months ago (2011-06-28 17:32:44 UTC) #46
haraken1
Randy: Thank you very much! I would like to wait for Pawel's review. http://codereview.chromium.org/6973052/diff/93001/chrome/browser/download/download_browsertest.cc File ...
9 years, 5 months ago (2011-06-29 01:10:22 UTC) #47
haraken1
Pawel: Would you please take a look?
9 years, 5 months ago (2011-06-30 22:05:25 UTC) #48
Randy Smith (Not in Mondays)
haraken: Pawel's on break. I just did another full review with as good an attention ...
9 years, 5 months ago (2011-07-06 18:56:12 UTC) #49
commit-bot: I haz the power
Try job failure for 6973052-106001 (retry) on win for step "compile" (clobber build). It's a ...
9 years, 5 months ago (2011-07-07 02:28:30 UTC) #50
haraken1
Sorry for the Windows build failure... I rebased with the latest repository and made a ...
9 years, 5 months ago (2011-07-07 07:25:51 UTC) #51
Randy Smith (Not in Mondays)
LGTM.
9 years, 5 months ago (2011-07-07 14:39:55 UTC) #52
commit-bot: I haz the power
Try job failure for 6973052-108001 (retry) on win for step "compile" (clobber build). It's a ...
9 years, 5 months ago (2011-07-07 16:16:01 UTC) #53
haraken1
I am sorry again... I fixed string conversions in save_page_browsertest.cc so that it passes Windows ...
9 years, 5 months ago (2011-07-08 14:30:41 UTC) #54
commit-bot: I haz the power
Change committed as 91861
9 years, 5 months ago (2011-07-08 16:38:30 UTC) #55
haraken1
The commit r91861 was reverted back because of the failure of browser_tests on Mac and ...
9 years, 5 months ago (2011-07-10 17:18:37 UTC) #56
haraken1
> The commit r91861 was reverted back because of the failure of browser_tests on > ...
9 years, 5 months ago (2011-07-21 14:23:12 UTC) #57
Randy Smith (Not in Mondays)
[If Pawel's got a moment to chime back in, I'd appreciate hearing from him with ...
9 years, 5 months ago (2011-07-25 15:32:47 UTC) #58
Randy Smith (Not in Mondays)
And also, thank you very much for persevering on this complex messy change in a ...
9 years, 5 months ago (2011-07-25 15:34:18 UTC) #59
Paweł Hajdan Jr.
I took an extremely brief look, I guess it's fine.
9 years, 5 months ago (2011-07-25 22:50:32 UTC) #60
haraken1
> So I'd like to request a couple of changes to minimize the chances of ...
9 years, 5 months ago (2011-07-27 14:23:49 UTC) #61
Randy Smith (Not in Mondays)
On 2011/07/25 22:50:32, Paweł Hajdan Jr. wrote: > I took an extremely brief look, I ...
9 years, 5 months ago (2011-07-27 20:23:44 UTC) #62
Paweł Hajdan Jr.
Oops, sorry, no, creating temp files in DIR_TEST_DATA is bad and may make the test ...
9 years, 4 months ago (2011-07-28 17:11:13 UTC) #63
Randy Smith (Not in Mondays)
On 2011/07/28 17:11:13, Paweł Hajdan Jr. wrote: > Oops, sorry, no, creating temp files in ...
9 years, 4 months ago (2011-07-28 17:51:26 UTC) #64
haraken1
> Oops, sorry, no, creating temp files in DIR_TEST_DATA is bad and may make the ...
9 years, 4 months ago (2011-07-29 01:42:24 UTC) #65
haraken1
Sorry, I found that the latest patch is wrong. Please wait a moment for the ...
9 years, 4 months ago (2011-07-29 04:31:02 UTC) #66
haraken1
> Sorry, I found that the latest patch is wrong. Please wait a moment for ...
9 years, 4 months ago (2011-07-29 07:44:48 UTC) #67
Paweł Hajdan Jr.
Sorry, I'm confused: is this change committed or not? What are the old/new bits? Thank ...
9 years, 4 months ago (2011-07-29 18:08:40 UTC) #68
Randy Smith (Not in Mondays)
On 2011/07/29 18:08:40, Paweł Hajdan Jr. wrote: > Sorry, I'm confused: is this change committed ...
9 years, 4 months ago (2011-07-29 20:31:07 UTC) #69
Randy Smith (Not in Mondays)
Eric: I want to check with you on the change to url_request_mock_http_job that's going on ...
9 years, 4 months ago (2011-07-29 20:46:44 UTC) #70
haraken1
> Eric: I want to check with you on the change to url_request_mock_http_job that's > ...
9 years, 4 months ago (2011-08-02 15:16:13 UTC) #71
eroman
I didn't notice the question in my inbox until Randy pinged me today :). Taking ...
9 years, 4 months ago (2011-08-04 19:14:43 UTC) #72
eroman
The mock handler for the system temp dir doesn't seem necessary or even desirable. Correct ...
9 years, 4 months ago (2011-08-04 20:09:44 UTC) #73
Randy Smith (Not in Mondays)
On 2011/08/04 20:09:44, eroman wrote: > The mock handler for the system temp dir doesn't ...
9 years, 4 months ago (2011-08-04 20:17:16 UTC) #74
eroman
> Correct me if I'm wrong, but that basically requires creating a new url request ...
9 years, 4 months ago (2011-08-04 21:35:33 UTC) #75
Randy Smith (Not in Mondays)
On 2011/08/04 21:35:33, eroman wrote: > > Correct me if I'm wrong, but that basically ...
9 years, 4 months ago (2011-08-04 21:39:16 UTC) #76
Randy Smith (Not in Mondays)
This is my last day before 1 1/2 weeks of vacation. I'm good with all ...
9 years, 4 months ago (2011-08-05 15:13:44 UTC) #77
haraken1
Sorry, I could not update the patch today (since I had to do other work ...
9 years, 4 months ago (2011-08-05 15:42:49 UTC) #78
haraken1
> Rather, what you can do is register a URL request hook which directly maps ...
9 years, 4 months ago (2011-08-08 06:18:52 UTC) #79
eroman
What patchset should I be looking at? I am looking at url_request_mock_http_job.cc in patchset 28 ...
9 years, 4 months ago (2011-08-10 01:34:08 UTC) #80
haraken1
> My comment was about removing the need for temporary directory. eroman: Sorry! I was ...
9 years, 4 months ago (2011-08-10 12:55:14 UTC) #81
eroman
Thanks for making that adjustment. Is there a file missing from this patch? It seems ...
9 years, 4 months ago (2011-08-11 02:07:13 UTC) #82
haraken1
> Is there a file missing from this patch? It seems like there should be ...
9 years, 4 months ago (2011-08-11 02:42:28 UTC) #83
eroman
The changes to the test files LGTM, However I still don't understand how 'url_request_mock_http_job.cc' can ...
9 years, 4 months ago (2011-08-11 18:27:20 UTC) #84
haraken1
Eroman: Thank you very much for the review. I removed the change in url_request_mock_http_job.h, since ...
9 years, 4 months ago (2011-08-12 03:36:44 UTC) #85
Paweł Hajdan Jr.
Rubber-stamp LGTM with the following comments. http://codereview.chromium.org/6973052/diff/173001/chrome/browser/download/download_browsertest.cc File chrome/browser/download/download_browsertest.cc (right): http://codereview.chromium.org/6973052/diff/173001/chrome/browser/download/download_browsertest.cc#newcode854 chrome/browser/download/download_browsertest.cc:854: NOTREACHED(); This is ...
9 years, 4 months ago (2011-08-12 17:00:58 UTC) #86
Peter Kasting
Drive-by: * Is the description on this CL up-to-date with what it actually does? There's ...
9 years, 4 months ago (2011-08-12 17:08:35 UTC) #87
haraken1
http://codereview.chromium.org/6973052/diff/173001/chrome/browser/download/download_browsertest.cc File chrome/browser/download/download_browsertest.cc (right): http://codereview.chromium.org/6973052/diff/173001/chrome/browser/download/download_browsertest.cc#newcode854 chrome/browser/download/download_browsertest.cc:854: NOTREACHED(); On 2011/08/12 17:00:59, Paweł Hajdan Jr. wrote: > ...
9 years, 4 months ago (2011-08-15 00:44:15 UTC) #88
haraken1
> * Is the description on this CL up-to-date with what it actually does? There's ...
9 years, 4 months ago (2011-08-15 00:44:34 UTC) #89
haraken1
+chrome-ui-review chrome-ui-review: We are going to make the following change in the download UI. - ...
9 years, 4 months ago (2011-08-15 00:52:28 UTC) #90
haraken1
+Brian Brian: Would you please give us a comment about the UI change? > +chrome-ui-review ...
9 years, 4 months ago (2011-08-17 15:47:36 UTC) #91
Peter Kasting
I chatted with Glen over IM. We concluded Chrome should create the user's desired folder ...
9 years, 4 months ago (2011-08-17 19:33:42 UTC) #92
Glen Murphy
I'm a little slow today, and am a little confused about why we're changing the ...
9 years, 4 months ago (2011-08-17 19:34:23 UTC) #93
haraken1
Peter and Glen, thank you very much for the comments. Below are my replies. Hmmm... ...
9 years, 4 months ago (2011-08-18 09:51:36 UTC) #94
Peter Kasting
On 2011/08/18 09:51:36, haraken wrote: > Approach1: Display the folder that a user specified before ...
9 years, 4 months ago (2011-08-18 19:35:23 UTC) #95
Randy Smith (Not in Mondays)
haraken-san: I'd be inclined to defer to Peter, and certainly to defer to UI lead ...
9 years, 4 months ago (2011-08-19 16:19:16 UTC) #96
Peter Kasting
Sorry haraken, I should have modulated my tone a bit better -- I didn't mean ...
9 years, 4 months ago (2011-08-19 16:37:19 UTC) #97
haraken1
9 years, 4 months ago (2011-08-20 01:59:56 UTC) #98
> haraken-san: I'd be inclined to defer to Peter, and certainly to defer to UI
> lead input, on chrome behavior (as opposed to implementation).

Randy, Peter and Glen: OK. Now, I understood the opinions of Peter and
Glen, and so I would like to stop and close this CL (in a few days if
no objections). I also discussed what the behavior should be with my
team members, and concluded that there is room to debate, but at
least, implicitly re-creating the preference folder would be better
than implicitly changing the preference folder to the user's
"Downloads" folder. (And now I know that this CL is not at all an
urgent issue and we should not spend more time to this CL.)

Randy and Pawel: I really cannot thank you enough for your dedicated
and long long long assistance. I learned much from those discussions,
e.g. the difficulty in implementation of using a temporary folder for
the "Downloads" folder in tests, how to solve the problem safely by
hacking the browser test mock, the potentiality that the invariant of
download state transitions may break up, and more importantly we
should ask UI leads earlier when we start to change the UI:-) Randy,
you always lead me to the right direction in a clearly understandable
manner, and most of all, in a manner that graciously encourages people
(especially newcomers). I have enormous respect for you as a reviewer.


2011年8月20日1:19  <rdsmith@chromium.org>:
> haraken-san: I'd be inclined to defer to Peter, and certainly to defer to UI
> lead input, on chrome behavior (as opposed to implementation).  My
> apologies, as
> I really should have realized (much) earlier in this thread that we should
> confirm that the behavioral change being made were wanted--I tend to be
> pretty
> heads down in the implementation and it's not always clear "how big" a
> change
> needs to be to require UI lead interaction.  OTOH, I should have at least
> asked
> the question earlier in this thread.
>
> Peter: I don't think it's unreasonable for someone new to the project, when
> confronted by a "Good first bug" submitted by another chromium committer, to
> assume the behavior is wanted.  I'll take a mea culpa myself (as above) that
> I
> should have recognized the behavior change should be checked a bit more
> widely.
> But I don't think that haraken made any errors here; he just got caught with
> a
> nasty first bug (in ways beyond the question of whether the behavior was
> wanted--see rest of thread).
>
> http://codereview.chromium.org/6973052/
>



-- 
=====================
Kentaro Hara (原健太朗)
http://haraken.info
=====================

Powered by Google App Engine
This is Rietveld 408576698