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

Issue 45048: Remove Windows "Save As" dialogs from Save Page code.... (Closed)

Created:
11 years, 9 months ago by Paul Godavari
Modified:
9 years, 7 months ago
Reviewers:
brettw
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Remove Windows "Save As" dialogs from Save Page code.In this change:- convert SavePackage to use async SelectFileDialog- return the chosen filter index in the FileSelected callback- some clean up of save_package.ccBUG=8691 (http://crbug.com/8691) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=12799

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 6

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Total comments: 6

Patch Set 13 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -186 lines) Patch
M chrome/browser/browser.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/download/download_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/download/save_package.h View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +31 lines, -23 lines 0 comments Download
M chrome/browser/download/save_package.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +103 lines, -83 lines 0 comments Download
M chrome/browser/gtk/dialogs_gtk.cc View 2 3 4 5 6 7 8 9 10 11 12 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/shell_dialogs.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/tab_contents/web_contents.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/tab_contents/web_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +13 lines, -20 lines 0 comments Download
M chrome/browser/views/bookmark_manager_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/views/bookmark_manager_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/views/options/content_page_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/views/options/content_page_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/views/shell_dialogs_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +63 lines, -36 lines 0 comments Download
M chrome/browser/views/user_data_dir_dialog.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/views/user_data_dir_dialog.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/common/temp_scaffolding_stubs.h View 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Paul Godavari
11 years, 9 months ago (2009-03-26 01:01:42 UTC) #1
brettw
http://codereview.chromium.org/45048/diff/2042/2058 File chrome/browser/download/save_package.h (right): http://codereview.chromium.org/45048/diff/2042/2058#newcode94 Line 94: SavePackage(WebContents* web_content); Is it necessary to have two ...
11 years, 9 months ago (2009-03-27 20:38:29 UTC) #2
Paul Godavari
http://codereview.chromium.org/45048/diff/2042/2058 File chrome/browser/download/save_package.h (right): http://codereview.chromium.org/45048/diff/2042/2058#newcode94 Line 94: SavePackage(WebContents* web_content); On 2009/03/27 20:38:30, brettw wrote: > ...
11 years, 9 months ago (2009-03-27 23:11:30 UTC) #3
brettw
http://codereview.chromium.org/45048/diff/4093/4108 File chrome/browser/download/save_package.cc (right): http://codereview.chromium.org/45048/diff/4093/4108#newcode990 Line 990: unsigned filter_index = 2; And this? http://codereview.chromium.org/45048/diff/4093/4108#newcode1009 Line ...
11 years, 8 months ago (2009-03-30 15:01:11 UTC) #4
brettw
LGTM with previous comments fixed.
11 years, 8 months ago (2009-03-30 15:01:25 UTC) #5
Paul Godavari
11 years, 8 months ago (2009-03-30 18:11:38 UTC) #6
http://codereview.chromium.org/45048/diff/4093/4108
File chrome/browser/download/save_package.cc (right):

http://codereview.chromium.org/45048/diff/4093/4108#newcode990
Line 990: unsigned filter_index = 2;
On 2009/03/30 15:01:11, brettw wrote:
> And this?

Done.

http://codereview.chromium.org/45048/diff/4093/4108#newcode1009
Line 1009: default_extension = L"htm";
On 2009/03/30 15:01:11, brettw wrote:
> I wonder if we can use "html" now? I think "htm" would probably be
inappropriate
> for Mac & Linux, and "html" would be nicer on Windows as well.

My preference is to leave it for now, since both Firefox and IE8 use "htm" and
this chunk of code is ifdef'd to Windows.

http://codereview.chromium.org/45048/diff/4093/4109
File chrome/browser/download/save_package.h (right):

http://codereview.chromium.org/45048/diff/4093/4109#newcode141
Line 141: unsigned index);
On 2009/03/30 15:01:11, brettw wrote:
> Can this be int?

Done.

Powered by Google App Engine
This is Rietveld 408576698