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

Issue 2450004: Don't save last used locations in open and save dialogs when in incognito mode. (Closed)

Created:
10 years, 6 months ago by Bernhard Bauer
Modified:
9 years, 7 months ago
CC:
chromium-reviews, brettw-cc_chromium.org, ben+cc_chromium.org, Paweł Hajdan Jr., Nico, Paul Godavari
Base URL:
git://codf21.jail.google.com/chromium.git
Visibility:
Public.

Description

Don't save last used locations in open and save dialogs when in incognito mode. For "Save page as..." we simply don't store the save location in incognito mode. For "Open File"... and file upload controls, it's a bit more complicated: because NSOpenPanel and NSSavePanel default to using the last chosen directory from NavigationServices (which we can't influence), we provide a preference value prefs::kLastChosenDirectory as fallback there, which is not persisted in incognito mode. BUG=45064 TEST=See bug for manual test. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=49237

Patch Set 1 #

Patch Set 2 : Fix build error in tests; Sync #

Total comments: 4

Patch Set 3 : Addressed review comments. #

Patch Set 4 : Rename kLastSelectedDirectory to kSelectFileLastDirectory. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -3 lines) Patch
M chrome/browser/browser.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/download/save_package.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/profile.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/profile.cc View 1 2 3 4 chunks +23 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 3 chunks +7 lines, -1 line 0 comments Download
M chrome/common/pref_names.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/testing_profile.h View 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Bernhard Bauer
Pam, could you review this? Nico, do you think there's an easier/more waterproof way to ...
10 years, 6 months ago (2010-06-02 15:49:32 UTC) #1
Pam (message me for reviews)
http://codereview.chromium.org/2450004/diff/8001/9001 File chrome/browser/browser.cc (right): http://codereview.chromium.org/2450004/diff/8001/9001#newcode1582 chrome/browser/browser.cc:1582: prefs::kLastSelectedDirectory); Should this be using profile_->last_selected_directory(), or am I ...
10 years, 6 months ago (2010-06-07 15:52:56 UTC) #2
(unused - use chromium)
Sorry, missed this somehow. Can you ping me about this early next week? (You don't ...
10 years, 6 months ago (2010-06-07 15:58:12 UTC) #3
Bernhard Bauer
On 2010/06/07 15:52:56, Pam wrote: > http://codereview.chromium.org/2450004/diff/8001/9001 > File chrome/browser/browser.cc (right): > > http://codereview.chromium.org/2450004/diff/8001/9001#newcode1582 > ...
10 years, 6 months ago (2010-06-08 10:13:25 UTC) #4
Pam (message me for reviews)
> The thing is, it's not specific to uploads, it's a fallback for when there ...
10 years, 6 months ago (2010-06-08 10:22:11 UTC) #5
Bernhard Bauer
On 2010/06/08 10:22:11, Pam wrote: > > The thing is, it's not specific to uploads, ...
10 years, 6 months ago (2010-06-08 10:28:33 UTC) #6
Pam (message me for reviews)
10 years, 6 months ago (2010-06-08 10:58:18 UTC) #7
LGTM!

- Pam

Powered by Google App Engine
This is Rietveld 408576698