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

Unified Diff: chrome/browser/profile.h

Issue 2450004: Don't save last used locations in open and save dialogs when in incognito mode. (Closed) Base URL: git://codf21.jail.google.com/chromium.git
Patch Set: Rename kLastSelectedDirectory to kSelectFileLastDirectory. Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/download/save_package.cc ('k') | chrome/browser/profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profile.h
diff --git a/chrome/browser/profile.h b/chrome/browser/profile.h
index 118608c4684b6a462a8be1f382585abd77252ced..cd87ca2b7a8ba06985169770901df81bc1bcbe55 100644
--- a/chrome/browser/profile.h
+++ b/chrome/browser/profile.h
@@ -416,6 +416,10 @@ class Profile {
// Returns the new tab page resource cache.
virtual NTPResourceCache* GetNTPResourceCache() = 0;
+ // Returns the last directory that was chosen for uploading or opening a file.
+ virtual FilePath last_selected_directory() = 0;
+ virtual void set_last_selected_directory(const FilePath& path) = 0;
+
#ifdef UNIT_TEST
// Use with caution. GetDefaultRequestContext may be called on any thread!
static void set_default_request_context(URLRequestContextGetter* c) {
@@ -536,6 +540,8 @@ class ProfileImpl : public Profile,
virtual void InitExtensions();
virtual void InitWebResources();
virtual NTPResourceCache* GetNTPResourceCache();
+ virtual FilePath last_selected_directory();
+ virtual void set_last_selected_directory(const FilePath& path);
virtual ProfileSyncService* GetProfileSyncService();
void InitSyncService();
virtual CloudPrintProxyService* GetCloudPrintProxyService();
« no previous file with comments | « chrome/browser/download/save_package.cc ('k') | chrome/browser/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698